AI Document Extractor: PDF, DOCX to Markdown + RAG chunks avatar

AI Document Extractor: PDF, DOCX to Markdown + RAG chunks

Pricing

from $2.00 / 1,000 documents

Go to Apify Store
AI Document Extractor: PDF, DOCX to Markdown + RAG chunks

AI Document Extractor: PDF, DOCX to Markdown + RAG chunks

Convert PDF, Word (DOCX) and text files to clean Markdown or text, split into RAG-ready chunks with page numbers and token estimates. Headings rebuilt from PDFs, scanned PDFs flagged, failed files free.

Pricing

from $2.00 / 1,000 documents

Rating

0.0

(0)

Developer

Momi

Momi

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Security

Limited permissions

Share

AI Document Extractor — PDF, DOCX & TXT to Markdown + RAG chunks

Turn PDF, Word (DOCX) and text files into clean Markdown or plain text, already split into chunks for RAG, embeddings and LLM prompts. Paste file URLs, get structured JSON back — no API keys, no code.

What you get for each document

  • Markdown with structure: headings are rebuilt from font sizes in PDFs (and kept from DOCX), so LLMs see sections, not a wall of text.
  • RAG-ready chunks: configurable size and overlap, each with startPage / endPage (PDF) and an approxTokens estimate — ready for your vector database.
  • Metadata: title, author, creation date (when present), pages, words, characters, approximate tokens.
  • Scanned PDF detection: if most pages contain no text layer, the item is flagged needsOcr: true instead of silently returning empty text.
  • Clean errors: broken links, HTML pages or unsupported files return an item with error — and are not charged.

Supported files

TypeNotes
PDFText-based PDFs. Line joining, de-hyphenation, heading detection, rotated margin text removed.
DOCXWord 2007+ documents, headings and bold kept. Tables are flattened to text.
TXT / MDUTF-8 text; Markdown headings are recognized.

Max 50 MB per file. Use direct file links (a URL that downloads the file), not web pages.

Output example

{
"url": "https://arxiv.org/pdf/1706.03762",
"fileType": "pdf",
"title": "Attention Is All You Need",
"pages": 15,
"words": 6164,
"approxTokens": 10250,
"needsOcr": false,
"content": "# Attention Is All You Need\n\n...",
"chunks": [
{ "index": 0, "text": "...", "characters": 1480, "approxTokens": 370, "startPage": 1, "endPage": 1 }
]
}

Use cases

  • RAG pipelines: feed chunks straight into Pinecone, Weaviate, Qdrant, pgvector or any embedding API.
  • LLM prompts: summarize contracts, papers, manuals or reports with structure preserved.
  • Bulk conversion: convert hundreds of PDFs/DOCX to Markdown for a knowledge base or a static site.
  • Automations: call it from Make, Zapier, n8n or the Apify API whenever a new document arrives.

Pricing

Pay per event: a small fee per document plus per page (for DOCX/TXT one "page" = 3,000 characters). Failed downloads and unsupported files are free. Limit pages with Max pages per PDF and total spend with Maximum cost per run.

Limits

  • No OCR in this version: scanned PDFs are detected and flagged, not transcribed.
  • Complex layouts (multi-column pages, tables) are extracted as readable text, not as tables.
  • Files are processed only for this run and are not stored beyond your own run storage.

Feedback

Need OCR, PPTX, XLSX or table extraction? Open an issue on the Issues tab — features are prioritized by requests.