Document to Markdown for RAG: PDF, Word, PowerPoint, Excel avatar

Document to Markdown for RAG: PDF, Word, PowerPoint, Excel

Pricing

from $4.00 / 1,000 documents

Go to Apify Store
Document to Markdown for RAG: PDF, Word, PowerPoint, Excel

Document to Markdown for RAG: PDF, Word, PowerPoint, Excel

Turn PDF, Word, PowerPoint, Excel, HTML and CSV files into clean Markdown with retrieval-ready chunks: heading path, page number and token estimate for each chunk. Built for RAG pipelines, vector databases and AI agents.

Pricing

from $4.00 / 1,000 documents

Rating

0.0

(0)

Developer

Jhair

Jhair

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Give the actor links to documents and get back clean Markdown plus chunks that are ready for a vector database. Each chunk keeps the headings it sits under, the PDF page where it starts, and a token estimate, so your retrieval results can cite the exact section and page.

It reads PDF, DOCX, PPTX, XLSX, HTML pages, CSV, TXT, and Markdown files. No API keys and no outside AI services: the conversion runs inside the actor.

What you get

One item per document. For example, the IRS form W-9 PDF gives:

FieldExample
fileName, format, titlefw9.pdf, pdf, W-9
pages, tables6, 4
wordCount, tokenEstimate, chunkCount6624, 8832, 24
markdownThe whole document as Markdown, with # headings and tables
chunks[{"index": 3, "text": "...", "tokenEstimate": 320, "headingPath": ["W-9", "..."], "page": 1}, ...]
warningsPages without a text layer, or pages left out by the page limit

How it converts

  • PDF: headings come from font size, tables become Markdown tables, and headers or footers that repeat on most pages are removed. Page numbers are kept for every chunk.
  • Word: headings, bulleted and numbered lists, and tables.
  • PowerPoint: one section per slide with its title, bullets, tables, and speaker notes.
  • Excel: one table per sheet, up to 1,000 rows each.
  • HTML: the main content only. Navigation, scripts, footers, and sidebars are dropped.

Input

{
"documentUrls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf", "https://www.python.org/about/"],
"chunkSize": 500,
"chunkOverlap": 50,
"maxPagesPerDocument": 200,
"includeTables": true,
"includeMarkdown": true
}
  • chunkSize and chunkOverlap are in tokens. A new section always starts a new chunk, and short paragraphs aren't split across chunks.
  • maxPagesPerDocument caps long PDFs. The warnings field says when it was applied.

Pricing

You pay per converted document, plus a tiny fee when the run starts. Documents that fail, or that have no text at all, aren't charged. Set a maximum charge per run in the run options and the actor stops there.

Good to know

  • Scanned PDFs without a text layer are reported in warnings. This version doesn't do OCR.
  • The actor reads robots.txt before downloading and skips any file a site disallows. Files must be public links, up to 50 MB each.
  • You're responsible for having the right to process the documents you send.