PDF to Text & Markdown Extractor: OCR, DOCX, RAG chunks
Pricing
from $4.00 / 1,000 document converteds
PDF to Text & Markdown Extractor: OCR, DOCX, RAG chunks
Turn PDF and Word files into clean Markdown text. Scanned pages are read with OCR, and the text comes split into RAG-ready chunks with heading paths.
Pricing
from $4.00 / 1,000 document converteds
Rating
0.0
(0)
Developer
Public Records
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
35 minutes ago
Last modified
Categories
Features
Share
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.
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.
What you get for each document
| Field | What it is |
|---|---|
markdown | The whole document as Markdown: headings, lists, tables, <!-- page N --> markers for PDFs |
chunks | Text chunks with headingPath, character offsets and a token estimate |
title, fileType, pageCount, pagesConverted | Document facts |
ocrPages, textLayerPages | Which pages were read with OCR and which from the text layer |
chars, tokensEstimate, chunkCount | Size of the text |
sha256, fileBytes, finalUrl | File identity |
Turn on One row per chunk to get one dataset row per chunk instead.
Sample input
{"documentUrls": ["https://arxiv.org/pdf/1706.03762","https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/main/tests/resources/skew.pdf"],"ocrMode": "auto","ocrLanguage": "eng","chunkSize": 400,"chunkOverlap": 40}
Sample output (from a real run, vGkUDMwrAEmbFAxKQ, second document)
{"url": "https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/main/tests/resources/skew.pdf","fileName": "skew.pdf","fileType": "pdf","title": null,"pageCount": 1,"pagesConverted": 1,"textLayerPages": 0,"ocrPages": [1],"ocrLanguage": "eng","chars": 4534,"tokensEstimate": 1134,"chunkCount": 4,"secondsToConvert": 2.68,"markdown": "<!-- page 1 -->\n\nThe LinnSequencer\n\n32 Track MIDIS\n\nequence Recorder\n\nThe LinnSequencer is a state-of-the-art composition and performance tool for the professional musician. It is\n\nextremely powerful, yet amazingly simple to learn and use. It ’s many remarkable features include:\n\n* Operation is simi ...","chunks": [{"index": 0,"headingPath": "","startChar": 0,"endChar": 1477,"chars": 1477,"tokensEstimate": 370,"text": "<!-- page 1 -->\n\nThe LinnSequencer\n\n32 Track MIDIS\n\nequence Recorder\n\nThe LinnSequencer is a state-of-the-art composition and performance tool for the professional musician. It is\n\nextremely powerful, ..."}]}
Price
Pay per event. You only pay for documents that convert.
| Event | Price |
|---|---|
| Actor start (per GB of memory, once per run; default 2 GB = $0.005) | $0.0025 |
| Document converted (includes its first 20 text pages and chunking) | $0.004 |
| Extra text page (each PDF text page after the first 20) | $0.0003 |
| OCR page (each page read with OCR: scanned pages, and on Auto pages with under 25 characters that contain an image) | $0.002 |
Examples: a 15-page text PDF costs $0.009 ($0.005 start + $0.004 document) in a run with the default 2 GB memory; a 142-page PDF costs $0.0456; a 4-page scan costs $0.017.
PDF to text with OCR for scanned pages
With OCR on Auto, pages that have no text layer (scans, photos of pages) are read with Tesseract OCR. Pages with almost no text (under 25 characters) that contain an image are also read with OCR and charged as OCR pages. Pages with more text than that are never OCRed or charged for OCR. Choose the OCR language for non-English scans (English, French, German, Spanish, Portuguese, Italian, Dutch, or a pair).
Chunking for RAG
Chunks follow the document's headings, paragraphs and sentences, so a chunk rarely cuts a sentence in half. Set Chunk size in tokens (about 4 characters per token) and Chunk overlap. Each chunk carries the heading path above it, for example Model Architecture > Attention.
Limits
- PDF and DOCX only (no .doc, images or spreadsheets). Up to 50 MB and 500 pages per PDF.
- Password-protected PDFs are skipped with a reason.
- OCR quality depends on the scan; handwriting is not supported.
- Multi-column PDFs are read line by line, so columns can interleave.
- A link that is not a PDF or DOCX, or a site that is down, is skipped: the run still ends SUCCEEDED, the file gets no row, the reason is in the status message and the
RUN_SUMMARYrecord, and the file adds no charge. The run's start fee still applies, so a run where every file is skipped costs only the start fee.
Engines and licences
Everything runs inside the Actor. No outside AI or OCR API is called.
| Part | Engine | Licence |
|---|---|---|
| PDF text and layout | pdfplumber, pdfminer.six | MIT |
| PDF page rendering for OCR | pypdfium2 (PDFium) | Apache-2.0 / BSD-3-Clause |
| OCR | Tesseract 5 with tessdata language models | Apache-2.0 |
| DOCX | mammoth + markdownify | BSD-2-Clause, MIT |
FAQ
Does it work on scanned PDFs? Yes. Leave OCR on Auto and scanned pages are read with OCR.
Can I convert only some pages? Yes, set Page range, for example 1-5,8 or 10-last.
Why did a file give no row? Open the run's status message or the RUN_SUMMARY record in the key-value store: it names each skipped URL and the reason (not a PDF/DOCX, HTTP error, source down, password-protected, no text).
Can an AI agent call it? Yes, through the Apify API or Apify's MCP server, with a list of URLs in documentUrls.