PDF to Text & Markdown Extractor: OCR, DOCX, RAG chunks
Give it links to PDF or Word (.docx) files. It returns each document as clean Markdown text, reads scanned pages with OCR, and splits the text into chunks ready for a vector database or an LLM prompt.
Open PDF to Text & Markdown Extractor on Apify →The one question it answers
What is the clean Markdown text of these PDF or Word files, with scanned pages read by OCR and the text split into RAG-ready chunks?
Who it is for
Teams building RAG search or chatbots over PDFs, reports, papers and contracts; AI agents that need the text of a PDF or DOCX link as Markdown; anyone who needs PDF to text in bulk without a separate OCR or AI API.
Input
| Field | What to put | Default |
|---|---|---|
documentUrls | Direct links to PDF or Word (.docx) files. Up to 50 MB per file. | Store example: an arXiv PDF and a scanned PDF |
ocrMode | auto (scanned pages only), always, or off | auto |
ocrLanguage | Language of the scanned text (English, French, German, Spanish, and others) | eng |
chunkSize / chunkOverlap | Token size and overlap for RAG chunks. 0 turns chunking off. | 400 / 40 |
pageRange | Only convert these PDF pages, e.g. 1-5,8 or 10-last | every page up to the page limit |
Output
One dataset row per document (or one row per chunk if you turn on One row per chunk), with markdown, chunks (heading path, offsets, token estimate), page counts, and which pages were read with OCR. Pay per event on your own Apify account (free tier available). Current rates are on the Store page. No outside OCR or AI API is called.
PDF and DOCX only (no .doc, images or spreadsheets). Password-protected PDFs are skipped with a reason. Handwriting is not supported. This tool is not affiliated with arXiv or OCRmyPDF; those links appear only in the Store example input.
Try it in 1 minute
- Open the Store page and run the example input (a text PDF and a scanned PDF, OCR on Auto).
- Or pin it in an MCP client:
mcp.apify.com?tools=publicrecords/pdf-docx-to-markdownand sign in with your Apify account. - Or import the n8n workflow or the Make HTTP recipe. Set your own Apify token; do not commit it.
MCP, examples, sample data
- Tutorial: How to turn a PDF or Word file into Markdown with OCR and RAG chunks
- Sample from the Actor README (real output, not invented) and explorer: Hugging Face dataset · Space
Attribution
Disclosure: I maintain this Actor on Apify Store (publicrecords). Engines run inside the Actor (pdfplumber, Tesseract, mammoth). No affiliation with those projects beyond using their open-source licences, which are listed on the Store page.