PDF & Documents to Markdown with OCR (for LLM / RAG) avatar

PDF & Documents to Markdown with OCR (for LLM / RAG)

Pricing

from $1.00 / 1,000 page converteds

Go to Apify Store
PDF & Documents to Markdown with OCR (for LLM / RAG)

PDF & Documents to Markdown with OCR (for LLM / RAG)

Convert PDFs, scanned PDFs, images, Word, PowerPoint, Excel and HTML into clean Markdown for LLMs and RAG. Automatic OCR (Tesseract) for scanned pages in 6 languages, page markers, pay per page, failures free.

Pricing

from $1.00 / 1,000 page converteds

Rating

0.0

(0)

Developer

Santiago Alfonso Ramírez

Santiago Alfonso Ramírez

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Turn PDFs, scanned PDFs, images, Word, PowerPoint, Excel, HTML and EPUB into clean Markdown ready for ChatGPT, Claude, embeddings and RAG pipelines. Scanned pages are read with OCR (Tesseract) automatically, in English, Spanish, French, German, Italian and Portuguese.

Why use it

  • One input, many formats: paste file URLs and get Markdown back, whatever the format.
  • Automatic OCR only where needed: pages with a text layer are extracted directly (fast and exact). Only pages without text, such as scans and photos of documents, go through OCR.
  • Page markers for RAG: each PDF page is separated and tagged (<!-- page 3 -->), so every chunk can cite its page.
  • Fair pricing: you pay per page converted, plus a small extra only for OCR pages. Files that fail are free.
  • No AI models, no data kept: conversion is deterministic (pypdfium2, Tesseract, Microsoft MarkItDown). Your files only go to your own dataset.

Input

{
"urls": ["https://arxiv.org/pdf/1706.03762", "https://example.com/scanned-invoice.pdf", "https://example.com/slides.pptx"],
"ocr": "auto",
"ocrLanguages": ["eng", "spa"],
"maxPagesPerDocument": 500
}
  • urls: public links to your files. To convert private files, upload them to a storage that gives you a link (for example an Apify key-value store) and paste the links.
  • ocr: auto (default; only PDF pages without text), always or never. Images are always OCRed.
  • ocrLanguages: languages that appear in the scans.
  • maxPagesPerDocument: converts (and charges) only the first N pages.
  • includePageText: also returns the plain text of each PDF page.

Output (one item per file)

{
"url": "https://arxiv.org/pdf/1706.03762",
"fileName": "1706.03762",
"type": "pdf",
"totalPages": 15,
"pages": 15,
"ocrPages": 0,
"chars": 39512,
"truncated": false,
"markdown": "<!-- page 1 -->\n\nProvided proper attribution is provided, Google hereby grants permission…\n\n---\n\n<!-- page 2 -->\n\n…"
}

Very large outputs are cut at 2,000,000 characters (truncated: true).

Pricing

  • Page: each page converted. Non-PDF files count as one page.
  • OCR page: an extra charge for each page or image read with OCR.

Files that cannot be downloaded or converted are saved with an error and not charged. Use maxPagesPerDocument to cap your spend.

Supported formats

PDF (text and scanned), PNG, JPG, TIFF, WebP, BMP, GIF, DOCX, PPTX, XLSX, HTML, TXT, Markdown, CSV, JSON, XML and EPUB. Maximum 50 MB per file.

En español

Convierte PDF (también escaneados), imágenes, Word, PowerPoint, Excel, HTML y EPUB en Markdown limpio para LLM y RAG. El OCR (Tesseract) se aplica solo a las páginas sin texto, en seis idiomas, con marcas de página. Se paga por página, y las páginas con OCR llevan un pequeño extra. Los ficheros que fallan no se cobran.