extract_markdown
Convert a local PDF into clean Markdown in reading order, preserving headings, lists, tables, and page breaks. Extract the whole document or only the pages you specify.
Instructions
A local PDF as markdown, in reading order.
Headings become # to ###, list items - and 1., a table a pipe
table (or HTML where markdown cannot hold its shape), and a change of page an
HTML comment. Running heads and page numbers are left out.
Args:
path: The PDF's absolute path on this machine.
pages: The 0-based pages to return; omit for the whole document, up to
the server's page limit. The whole document is still read, because
what a block is gets decided against the rest of it.
quality: "fast" (default) or "balanced", the layout-model tier,
which needs the models installed on this machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| quality | No | fast |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |