PDF to Markdown, Tables and Chunks for AI
Pricing
from $3.00 / 1,000 pdf documents
PDF to Markdown, Tables and Chunks for AI
Turn PDF URLs into clean Markdown, structured tables (rows as JSON) and RAG-ready chunks. Built for AI agents and LLM pipelines: one call, clean JSON, pay per page.
Pricing
from $3.00 / 1,000 pdf documents
Rating
0.0
(0)
Developer
Alvin Tom
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Give it PDF links, get back clean Markdown, tables as rows and RAG-ready chunks in one call. Made for AI agents, LLM pipelines and anyone who needs the text and tables out of PDFs, not just raw text.
What you get per PDF
markdown: the whole document as Markdown, with<!-- page N -->markers and tables as Markdown tablestables: every table found, as{page, index, rows}(rows are lists of cells)chunks: pieces of aboutchunkSizecharacters withpageandpageEnd, ready for embeddingsscannedPages: pages with no text layer (scans)ocrPages: scanned pages that were read with OCR (18 languages incl. Malay, Chinese, Arabic)pageCount,pagesRead,title,error
Input
{ "pdfUrls": ["https://arxiv.org/pdf/1706.03762"], "includeTables": true, "chunkSize": 1500, "chunkOverlap": 150, "maxPages": 200 }
Pricing
Pay per PDF plus per page: one document event for each PDF read, and one pdf-page event for each page read, and one ocr-page event for each scanned page read with OCR. You are never charged for pages past maxPages or for PDFs that fail, and the run stops cleanly when your spending limit is reached.
Use cases
- Load reports, contracts, papers and manuals into a RAG pipeline or vector database
- Let an AI agent read a PDF link in the middle of a task
- Pull tables (price lists, specs, financials) out as rows for a spreadsheet or database
- Read scanned letters, invoices and forms in Malay, Chinese, English and 15 more languages
Output example
{"itemType": "document","url": "https://arxiv.org/pdf/1706.03762","pageCount": 15, "pagesRead": 15, "scannedPages": [],"tableCount": 2, "chunkCount": 35, "error": null,"markdown": "<!-- page 1 -->\n...","tables": [{ "page": 9, "index": 0, "rows": [["N", "d model"], ["6", "512"]] }],"chunks": [{ "index": 0, "page": 1, "pageEnd": 1, "chars": 1500, "text": "<!-- page 1 -->\n..." }],"bigFile": false}
Price examples
| What you read | You pay |
|---|---|
| 1 PDF, 10 pages | $0.004 |
| 1 PDF, 100 pages | $0.013 |
| 1,000 PDFs of 20 pages | about $5 |
Plus a tiny start fee ($0.00005) per run. Scanned pages read with OCR: $0.004 per OCR page (you can turn OCR off with ocrScannedPages: false, or cap it with maxOcrPagesPerPdf).
Use it from code or an AI agent
Python (pip install apify-client):
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("alvin_tom/pdf-to-markdown-tables").call(run_input={"pdfUrls": ["https://arxiv.org/pdf/1706.03762"]})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["url"], item.get("pageCount"), len(item.get("chunks") or []))
AI agents: add this Actor as a tool in Claude, Cursor or any MCP client through Apify's MCP server (https://mcp.apify.com/?tools=alvin_tom/pdf-to-markdown-tables). The agent passes links and gets clean JSON back.
FAQ
Does it read scanned PDFs? Yes. Pages with no text layer are read with OCR (set ocrLanguages, e.g. ["eng", "msa"]) and listed in ocrPages.
Password-protected PDFs? Not supported yet. You get an error and no charge.
Can I send a file instead of a link? Give any public link, for example a file in an Apify key-value store or cloud storage.
Good to know
- Scanned pages are read with OCR in the languages you pick. Clean scans read best; handwriting is not supported.
- Tables drawn with lines or with clear column alignment are found; tables with no lines and loose spacing may be missed.
- Limits: 60 MB per PDF, public http(s) links only. Every redirect is checked too, so links can't lead to private or local addresses.
- We don't keep your files: each PDF is read in memory and only the result goes to your dataset. Author and other metadata are not returned.
Support: open an issue on this Actor. Replies come from an AI assistant and are checked by our rules.
Large documents
Results up to about 8 MB come back as one dataset item. Bigger ones switch to big-file mode on their own: the full Markdown (and tables) are saved in the run's key-value store, the document item gives markdownKey/markdownUrl, and each chunk becomes its own dataset item (itemType: "chunk"). Filter on itemType to tell them apart.