pdffr
v0.1.1Local, private PDF to Markdown for agents: geometry-first parsing, OCR only where needed.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pdf_to_markdown PDF → Markdown
Decompile a PDF into Markdown (headings, lists, tables, math as LaTeX) locally. Born-digital pages take milliseconds; scans and screenshots get on-device OCR only where needed. Nothing is uploaded. Use pdf_outline first on long documents to pick pages.
| Parameter | Type | Description |
|---|---|---|
base64 | string | Raw PDF bytes, base64-encoded |
lang | string | Tesseract language(s) for OCR, e.g. 'eng', 'deu', 'eng+ara' (default 'eng') |
maxChars | integer | Truncate the Markdown to this many characters (default 200000) |
ocr | boolean | Escalate ink the text layer cannot explain to on-device OCR (default true) |
pages | string | Page selection like '1-3,7' (default all) |
path | string | Path to a PDF on this machine |
url | string | URL of a PDF to fetch |
pdf_outline PDF outline
List the headings of a PDF with their level and page number, so you can decide which pages to read with pdf_to_markdown.
| Parameter | Type | Description |
|---|---|---|
base64 | string | Raw PDF bytes, base64-encoded |
lang | string | Tesseract language(s) for OCR, e.g. 'eng', 'deu', 'eng+ara' (default 'eng') |
ocr | boolean | Escalate ink the text layer cannot explain to on-device OCR (default true) |
path | string | Path to a PDF on this machine |
url | string | URL of a PDF to fetch |
pdf_tables PDF tables
Extract every table in a PDF as JSON rows: [{ page, rows: string[][] }]. The first row is the header.
| Parameter | Type | Description |
|---|---|---|
base64 | string | Raw PDF bytes, base64-encoded |
lang | string | Tesseract language(s) for OCR, e.g. 'eng', 'deu', 'eng+ara' (default 'eng') |
ocr | boolean | Escalate ink the text layer cannot explain to on-device OCR (default true) |
path | string | Path to a PDF on this machine |
url | string | URL of a PDF to fetch |