Document to Markdown for RAG: PDF, Word, Excel
Pricing
from $2.00 / 1,000 page processeds
Document to Markdown for RAG: PDF, Word, Excel
Turn PDFs, scans (OCR), Word, PowerPoint, Excel, OpenDocument, EPUB and web pages into clean Markdown, text, tables and heading-aware RAG chunks for LLMs, vector databases and AI agents. Pay per page.
Pricing
from $2.00 / 1,000 page processeds
Rating
0.0
(0)
Developer
nemata
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
19 hours ago
Last modified
Categories
Features
Share
Document to Markdown for RAG: PDF, Word, PowerPoint, Excel, HTML, EPUB + OCR
Turn almost any document link into clean Markdown, plain text, tables and ready-to-embed chunks for RAG pipelines, LLM prompts, AI agents, search indexes or spreadsheets.
- 15+ formats, one output. PDF, scans and images (OCR), Word (DOCX), PowerPoint (PPTX, with speaker notes), Excel (XLSX), OpenDocument (ODT, ODP, ODS), EPUB e-books, HTML web pages, RTF, TXT, Markdown, CSV and JSON.
- Real structure, not a wall of text. Headings, nested lists, links and tables are kept as Markdown, so an LLM sees the document the way a person does.
- RAG chunks built in. Heading-aware chunks with a size and overlap you choose. Tables are split by rows and keep their header row. Each chunk carries its heading path (
Handbook > Holidays > Public holidays) and atextWithContextfield ready for embeddings. - Automatic OCR for scanned pages in 9 languages: English, Spanish, French, German, Italian, Portuguese, Dutch, Catalan, Polish.
- Web pages without the clutter. Menus, headers, footers, scripts and forms are removed. robots.txt is respected.
- Pay only for what you process. No subscription.
Use cases
- Feed contracts, reports, manuals, slide decks or spreadsheets into a vector database
- Give an AI agent the ability to "read" any document link
- Make scanned archives searchable
- Pull tables out of PDFs and spreadsheets as rows
Input
| Field | Description |
|---|---|
files | Direct links to documents (any format above). Up to 100 MB each. The type is detected from the content, so links without an extension work too. |
outputMode | file (default): one item per document. page: one item per page, slide, sheet or chapter. chunks: RAG chunks. |
chunkSize / chunkOverlap | Chunk size and overlap in characters (default 2,000 / 200). About 4 characters = 1 token. |
includeSlideNotes | Add PowerPoint speaker notes under each slide (default: on). |
ocrMode | PDFs and images. auto (default): OCR only pages without text. always: OCR every page. never: no OCR. |
ocrLanguages | Languages in scanned documents. Default: English. |
extractTables / tableMode | PDF table detection: lines (ruled tables, default) or text (borderless tables). |
maxPagesPerFile | Process only the first N pages, slides, sheets or chapters. |
Example:
{"files": [{ "url": "https://example.com/handbook.docx" },{ "url": "https://example.com/report.pdf" }],"outputMode": "chunks","chunkSize": 1500,"chunkOverlap": 150}
Output
With outputMode: "file":
{"url": "https://example.com/handbook.docx","type": "docx","metadata": { "title": "Handbook", "creator": "HR" },"billedPages": 4,"text": "Employee Handbook\n\n1. Holidays\n...","markdown": "# Employee Handbook\n\n# 1. Holidays\n\nEveryone gets 25 days...\n\n- Ask your manager first\n- Book in the HR tool\n\n| Type | Days |\n| --- | --- |\n| Paid | 25 |","tables": [[["Type", "Days"], ["Paid", "25"]]]}
With outputMode: "chunks", one item per chunk:
{"url": "https://example.com/handbook.docx","type": "docx","chunkIndex": 3,"page": 1,"headings": ["Employee Handbook", "1. Holidays", "1.1 Public holidays"],"text": "Madrid public holidays apply. ...","textWithContext": "Employee Handbook > 1. Holidays > 1.1 Public holidays\n\nMadrid public holidays apply. ...","chars": 1412}
Slides come with slide, spreadsheets with sheet and e-books with chapter instead of page. Files that cannot be read return an item with an error field; the rest of the run continues.
Use with AI agents
- MCP: AI assistants and agents can call this Actor as a tool through the Apify MCP server.
- No Apify account needed for agents: agents can pay per run through Apify with x402 (stablecoins) or Skyfire, and then call the Actor with the temporary token they receive.
- Clear JSON input and structured JSON output that an agent can use directly.
Pricing
$0.002 per page ($2 per 1,000). The price is the same for every Apify plan you are on, and you can set a maximum cost per run in the run options.
Pay per event: you are charged per page processed. For PDFs and images a page is a real page. For slides, one slide = one page. For formats without pages (Word, Excel, HTML, EPUB, text), one page = 3,000 characters of extracted text, rounded up; a short document is one page. The price is shown on this page. Set a maximum cost per run in the run options and the Actor stops when it is reached.
Privacy
Files are downloaded only to process them during the run. The Actor does not keep copies; results are stored only in your own Apify dataset.
Limitations
- OCR quality depends on scan quality. Very low-resolution or handwritten documents give weaker results.
- Password-protected or encrypted files are not supported. Old binary formats (.doc, .ppt, .xls) are not supported: save them as DOCX, PPTX or XLSX.
- Images inside Word, PowerPoint and EPUB files are not OCR'd; only their alt text is kept.
- Web pages that need JavaScript to show their content return little or no text.
- Borderless table detection is heuristic; check results on complex layouts.