Parse complete document and split result by pages (PDF or image)
(file: UploadFile = File(...))
| 108 | |
| 109 | @app.post("/parse/split", response_model=ParseResponse) |
| 110 | async def parse_document_split(file: UploadFile = File(...)): |
| 111 | """Parse complete document and split result by pages (PDF or image)""" |
| 112 | return await parse_document_internal(file, split_pages=True) |
| 113 | |
| 114 | async def async_parse_file(input_file_path: str, output_dir: str, split_pages: bool = False): |
| 115 | """ |
nothing calls this directly
no test coverage detected