ocr_pdf
Turn PDFs into Markdown by OCR-ing scanned pages with a local vision model; optionally convert selected page ranges or save output to a file.
Instructions
Convert a PDF to Markdown, OCR-ing scanned/image pages via oMLX.
Text-layer pages go through MarkItDown directly; scanned pages are
rendered and OCR'd by the vision model. If pages is given (e.g.
"1-5,9"), only those pages are converted. If out_path is given the
Markdown is written there and a summary is returned instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| out_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |