Document to Markdown for AI & RAG — PDF, DOCX, PPTX, XLSX, OCR avatar

Document to Markdown for AI & RAG — PDF, DOCX, PPTX, XLSX, OCR

Pricing

from $1.00 / 1,000 documents

Go to Apify Store
Document to Markdown for AI & RAG — PDF, DOCX, PPTX, XLSX, OCR

Document to Markdown for AI & RAG — PDF, DOCX, PPTX, XLSX, OCR

Convert PDFs, Word, PowerPoint, Excel, HTML, EPUB, CSV and images into clean, LLM-ready Markdown with real tables, headings, correct multi-column reading order, page markers, OCR for scans and ready-made RAG chunks. Pay per page. MCP-ready for AI agents.

Pricing

from $1.00 / 1,000 documents

Rating

0.0

(0)

Developer

Jeggy

Jeggy

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 hours ago

Last modified

Features

Limited permissions

Share

PDF to Markdown, plus Word, PowerPoint and Excel: send document URLs and get clean, LLM-ready Markdown and RAG chunks back. It handles PDFs (including scanned PDFs with OCR), DOCX, PPTX, XLSX, HTML, EPUB, CSV, JSON, TXT and images. It produces real Markdown tables, a proper heading hierarchy, the correct reading order for two-column papers, page markers for citations, and chunks that never cut a table in half. $0.001 per document + $0.0001 per page ($0.0015 per OCR page).

It's built for RAG pipelines, AI agents (Claude, ChatGPT and Cursor via Apify MCP), n8n, Make and Zapier automations, and anyone tired of PDF parsers that silently scramble or drop content.

Why this one

Popular quick converters return nothing for scanned pages, interleave two-column text line by line and flatten tables. Those are exactly the chunks your retriever needs. This Actor fixes all three:

ProblemWhat this Actor does
Scanned or image-only pages come back emptyAuto-OCR (Tesseract) runs only on pages with no text layer, so you pay for OCR only when it's needed
Two-column papers turn into word saladColumn-gutter detection reads the left column, then the right, with full-width titles kept in place
Tables flattened into one value per lineMarkdown pipe tables, with empty merged columns removed
Headings lost, so chunking by section failsHeadings from font size, bold weight and section numbers (1, 2.1, 3.2.1…) become #, ##, ###
Chunks cut tables or lose contextHeading-aware chunks with token estimates, page ranges, a heading path and hasTable. Big tables split by rows with the header repeated
Huge payloads choke n8n or MakeOptional fields (includeMarkdown, includePages), plus chunks that are ready to embed

Supported inputs

PDF (text, scanned or mixed, plus password-protected with a password) · DOCX · PPTX (one page per slide) · XLSX · HTML · EPUB · CSV · JSON · XML · TXT/MD · PNG, JPG, TIFF, WebP, GIF and BMP images (OCR). OCR languages: English, German, French, Spanish, Italian, Portuguese and Dutch (eng+deu…).

Input example

{
"urls": [
"https://arxiv.org/pdf/1706.03762",
"https://calibre-ebook.com/downloads/demos/demo.docx",
"https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/main/tests/resources/linn.pdf"
],
"chunkSizeTokens": 800,
"chunkOverlapTokens": 80,
"ocrMode": "auto",
"ocrLanguages": "eng"
}

Output example (one item per document)

{
"url": "https://arxiv.org/pdf/1706.03762",
"fileName": "1706.03762v7.pdf",
"contentType": "application/pdf",
"fileType": "pdf",
"title": "Attention Is All You Need",
"pageCount": 15,
"pagesProcessed": 15,
"truncated": false,
"ocrPages": 0,
"billedPages": 15,
"words": 6851,
"tables": 9,
"tokenEstimate": 10982,
"metadata": {
"creator": "LaTeX with hyperref",
"producer": "pdfTeX-1.40.25",
"created": "D:20240410211143Z",
"modified": "D:20240410211143Z"
},
"markdown": "<!-- page 1 -->\n\nProvided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works.\n\n# Attention Is All You Need\n\nAshish Vaswani ∗ Noam Shazeer ∗ Niki Parmar ∗ Jakob Uszkoreit ∗ Google Brain Google Brain Google Research Google Research avaswani@google.com noam@google.com nikip@google.com usz@google.com\n\nLlion Jo …",
"chunks": [
{
"index": 3,
"text": "## 3 Model Architecture\n\nMost competitive neural sequence transduction models have an encoder-decoder structure [5, 2, 35]. Here, the encoder maps an input sequence of symbol representations ( x , ..., x ) to a sequence 1 n of continuous representations z = ( …",
"tokens": 538,
"heading": "Attention Is All You Need > 3 Model Architecture",
"pageStart": 2,
"pageEnd": 3,
"hasTable": false
},
"…"
],
"processingMs": 3723
}

A failed document is free:

{
"url": "http://127.0.0.1/secret.pdf",
"error": "Refusing to fetch non-public address 127.0.0.1"
}

Pricing (pay per event)

EventPriceNotes
document$0.001per document converted successfully
page$0.0001per PDF page or PPTX slide. Other formats count 1 page per 3,000 characters of output
ocr-page$0.0015extra, only for pages that actually needed OCR

Examples: a 15-page research paper costs $0.0025, a 100-page text PDF costs $0.011, a single scanned image costs $0.0026, and a 10-page scan costs $0.017. There's no per-run start fee beyond Apify's standard $0.00005. Failed downloads, unsupported files and errors are never charged, and Apify platform usage is included. Before converting each document, the Actor checks that it fits within your "Maximum cost per run".

How it compares

Figures below are from Apify Store listings (November 2026). They can change.

This Actormemo23/pdf-text-extractor (most-used PDF-to-Markdown style rival)
Price$0.001 per document + $0.0001 per page; $0.0015 per OCR page. Platform usage included.$0.005 actor start + $0.005 per PDF + $0.015 per OCR page.
Users (30 days, Nov 2026)New191 monthly users; 5.00★ from 2 reviews

A 20-page text PDF on this Actor costs $0.003 ($0.001 + 20 × $0.0001). The same size on that rival is $0.010 before any OCR.

Use with AI agents (MCP) and automations

  • MCP: connect https://mcp.apify.com in Claude Desktop, Cursor or VS Code and add this Actor. Then ask: "Read this PDF and summarise section 3".
  • n8n, Make and Zapier: call the Actor with the URL of an email attachment or cloud file and use chunks[].text directly in your embedding step.
  • LangChain and LlamaIndex: load the dataset with the Apify integration and map chunks to documents, using pageStart and heading as metadata.

FAQ

Does it work on scanned PDFs? Yes. With ocrMode: auto, any page without a text layer is OCR'd at 300 dpi. Use always to force OCR, for example on PDFs with a broken text layer.

How accurate are tables? Tables with ruling lines (most business and financial PDFs) come out as clean Markdown tables. Borderless, academic-style tables are harder: their text is kept, but the cell structure may be approximate.

Can I upload files instead of URLs? Use any direct-download URL, such as an S3 or Dropbox direct link, a public Google Drive export link, or an Apify key-value store record URL.

Is my data stored? Files are processed in a temporary folder and deleted at the end of the run. Output stays in your own Apify dataset.

Limits? Up to 200 MB and 2,000 pages per document (the defaults are 50 MB and 300 pages). Legacy .doc, .xls and .ppt aren't supported, so save them as DOCX, XLSX, PPTX or PDF.

Is there an AGPL or commercial licence issue? No. It uses only permissive libraries: pdfplumber (MIT), pypdfium2 (Apache/BSD), Tesseract (Apache-2.0) and Microsoft MarkItDown (MIT).

Changelog

  • 1.0: first release. Auto-OCR, two-column reading order, tables, heading detection, RAG chunks, page markers, pay per page.

Other tools in this collection: