PDF to Markdown
What this tool does
This tool converts a PDF into clean Markdown: paragraphs are rebuilt from hard-wrapped lines and tables become standard pipe tables. It is meant for documentation, RAG pipelines and content migration, where plain text with structure beats raw PDF extraction.
When to use it
- Feeding a knowledge base or a RAG index with the content of PDF reports.
- Moving PDF documentation into a Markdown-based CMS or repository.
- Reviewing the content of a contract or report as editable text.
- Getting tables out of a PDF already formatted as Markdown.
What to expect
You receive the Markdown text in markdown plus a link to a .md file, with the number of pages, characters and tables detected.
Limitations
- No headings or bold detection: everything is paragraphs plus tables.
- Multi-column layouts and footnotes can end up in an unexpected order.
- Scanned PDFs need
ocrenabled; the text layer comes from the OCR engine. - Images are not extracted.
When it fails
- The file is not a valid PDF.
- The selected pages contain no text (enable
ocrfor scans). - The page limit is exceeded.
Good to know
- Set
pages(for example1-5) to convert only part of a long report. - Pairs well with
extract-tables-from-pdfwhen you need the tables as data. - For a web page instead of a PDF, use
get-markdown-by-url.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
url | Yes | https://public.downloads.uproc.io/samples/sample.pdf | Public URL of the PDF to convert. |
pages | No | 1-3 | Pages to convert, like '1-3' or '1, 5'. Empty means all pages. |
ocr | No | false | Use the OCR engine when the PDF has no text layer (scans). |
Output data
| Field | Description |
|---|---|
result | Signed URL of the generated .md file. |
markdown | Markdown content extracted from the PDF. |
pages | Pages converted. |
chars | Characters in the resulting Markdown. |
tables | Tables rendered as markdown pipe tables. |
ocr_used | True when the text came from the OCR engine. |