PDF to Markdown API: OCR, Tables, RAG (Docling) avatar

PDF to Markdown API: OCR, Tables, RAG (Docling)

Pricing

from $3.00 / 1,000 page converteds

Go to Apify Store
PDF to Markdown API: OCR, Tables, RAG (Docling)

PDF to Markdown API: OCR, Tables, RAG (Docling)

PDF to Markdown and JSON document converter for RAG and LLMs, powered by open-source Docling. Converts PDFs, scans (OCR), Word, PowerPoint, Excel, HTML and images. Keeps headings, tables and reading order; optional RAG chunks with page numbers. From $3 per 1,000 pages. No LLM calls.

Pricing

from $3.00 / 1,000 page converteds

Rating

0.0

(0)

Developer

Tallow Lane Labs

Tallow Lane Labs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Features

Limited permissions

Share

PDF to Markdown & Text API: OCR, Tables, RAG Chunks (Docling)

Turn PDFs, scanned documents, Word, PowerPoint, Excel, HTML and images into clean, LLM-ready Markdown or lossless Docling JSON. Headings, reading order, lists and tables survive, scans are OCR'd, and you can get RAG chunks with page numbers in the same run. $0.003 per page, nothing charged for failed files.

Runs IBM's open-source Docling (MIT) with its layout, TableFormer and OCR models built in. Your documents never leave the run: no third-party APIs, no LLM calls.

By Tallow Lane Labs. Independent project; not affiliated with or endorsed by IBM or the Docling project.

Why use it

  • Built for RAG. Real # headings, pipe tables and <!-- image --> markers, plus optional token-sized chunks (Docling HybridChunker) carrying headings and pageNumbers so answers can cite the page.
  • Handles the hard files. Multi-column papers, financial tables (opt-in accurate table model) and scanned or image-only PDFs (automatic OCR).
  • One tool for every format. PDF, DOCX, PPTX, XLSX, HTML, Markdown, CSV, AsciiDoc and images (PNG, JPG, TIFF, BMP, WEBP). Upload files or paste URLs, up to 1,000 documents per run.
  • Fair, predictable price. Pay per page, OCR only where OCR actually did the work, and a hard stop at your run's maximum charge.
  • Private by default. Downloads are deleted right after conversion and uploads are deleted after the run.

Use cases

  • Feed PDFs and Office files into a vector database (Pinecone, Qdrant and others) for a chatbot or search.
  • Give an AI agent a "read this document" tool through Apify MCP.
  • Convert research papers, manuals and policies into Markdown for a docs site or knowledge base.
  • Pull tables out of annual reports, statistical releases and invoices.
  • OCR scanned archives and forms into searchable text.
  • Normalize mixed Word, PowerPoint and HTML files into one format for LLM fine-tuning or evaluation sets.

Quick start

  1. Click Try for free. The form is pre-filled with the first 2 pages of a real paper (the Docling Technical Report on arXiv, CC BY 4.0), so the first run costs about one cent and shows real headings, author block, abstract and a figure marker.
  2. Paste document links under Document URLs, or upload files under Upload documents.
  3. Pick Markdown, Docling JSON or both. Turn on Create RAG chunks if you are building a RAG index.
  4. Run. Results are in the Documents, Markdown and RAG chunks tabs, and in the API.

Input example

{
"urls": [{ "url": "https://arxiv.org/pdf/2408.09869" }],
"outputFormat": "markdown",
"ocrMode": "auto",
"tableMode": "fast",
"maxPagesPerDocument": 200,
"chunking": true,
"chunkMaxTokens": 512,
"chunksAsDatasetItems": true
}

Main options: outputFormat (markdown, json, both), ocrMode (auto, force, off), tableMode (fast, accurate, off), maxPagesPerDocument (cost and time cap per file), chunking and chunkMaxTokens (64–8,192), chunksAsDatasetItems (one dataset row per chunk). Every field is described in the Input tab.

Output example

One row per document (recordType: "document"). This is the real output of the default demo: the first 2 pages of the Docling Technical Report (arXiv 2408.09869v5, CC BY 4.0), Docling 2.143.0:

{
"recordType": "document",
"url": "https://arxiv.org/pdf/2408.09869v5",
"sourceType": "url",
"fileName": "2408.09869v5.pdf",
"format": "pdf",
"status": "success",
"error": null,
"fileSizeBytes": 5566575,
"title": "Docling Technical Report",
"markdown": "<!-- image -->\n\n## Docling Technical Report\n\n## Version 1.0\n\nChristoph Auer MaksymLysak Ahmed Nassar ...\n\n## Abstract\n\nThis technical report introduces Docling, an easy to use, self-contained, MITlicensed open-source package for PDF document conversion. ...\n\n## 1 Introduction\n\n...",
"markdownUrl": null,
"pagesConverted": 2,
"totalPages": 9,
"truncated": true,
"ocrPages": 0,
"tables": 0,
"pictures": 1,
"markdownChars": 5595,
"chunkCount": null,
"billedUnits": { "pageConverted": 2, "pageAccurateTables": 0, "ocrPage": 0, "chunkBatch": 0 },
"doclingVersion": "2.143.0"
}

truncated: true because the demo stops at 2 pages (maxPagesPerDocument: 2); set it higher to convert the whole file. The Markdown keeps the document structure:

<!-- image -->
## Docling Technical Report
## Version 1.0
Christoph Auer MaksymLysak Ahmed Nassar Michele Dolfi ...
## Abstract
This technical report introduces Docling, an easy to use, self-contained, MITlicensed open-source package for PDF document conversion. ...
## 1 Introduction

For a full 9-page paper with tables (the DocLayNet paper, from our benchmark) the same row reports pagesConverted: 9, tables: 5, pictures: 6, markdownChars: 52489 and chunkCount: 42, and the Markdown starts:

## DocLayNet: A Large Human-Annotated Dataset for Document-Layout Analysis
...
Figure 1: Four examples of complex page layouts across different document categories
<!-- image -->
## KEYWORDS

With Output chunks as separate dataset rows on, each chunk is its own row (recordType: "chunk"), real example from the same paper:

{
"recordType": "chunk",
"fileName": "2206.01062.pdf",
"chunkIndex": 1,
"text": "PDF document conversion, layout segmentation, object-detection, data set, Machine Learning",
"contextualizedText": "KEYWORDS\nPDF document conversion, layout segmentation, object-detection, data set, Machine Learning",
"headings": ["KEYWORDS"],
"pageNumbers": [1],
"tokenCount": 19,
"docItemLabels": ["text"]
}
  • Outputs up to 2 MB (adjustable) are inline; bigger ones go to the run's key-value store and the row links them in markdownUrl, jsonUrl and chunksUrl.
  • status is success, partial_success (some pages failed or the per-document timeout hit) or failed (with error).
  • The run's SUMMARY record totals documents, pages, OCR pages and failures.

Pricing (pay per event)

EventPriceWhen
Page converted$0.003Each PDF page or PPTX slide (default fast tables). Page-less formats (DOCX, HTML, XLSX, MD, CSV) count one page per started 3,000 characters of real text, minimum 1 per document.
Page converted (accurate tables)$0.007Only if you choose Table structure = Accurate; replaces the $0.003 charge for PDF and image pages.
OCR page$0.01A page where OCR produced at least half the text (scans, photos, or OCR = Force). Replaces the page charge, never added to it.
RAG chunks$0.001 per started 100 chunks, per documentOnly with chunking on
Actor start$0.00125 per GB of memory ($0.005 at the default 4 GB)Once per run
  • Failed documents are never charged. Each page is billed once, at one of the three page prices.
  • Examples at 4 GB: a 10-page digital PDF costs $0.035 in total; with accurate tables $0.075. A 20-page Word file (about 40,000 characters) costs $0.047. A 100-page scanned book costs $1.005.
  • Set Max pages per document and Apify's maximum cost per run to cap spend; the Actor converts what fits and stops cleanly.

Speed and memory

Measured on 1 vCPU (Apify's 4 GB setting): plain-text PDFs about 1.5–2 s per page, typical papers about 3 s, dense statistical tables about 8 s (about 18 s with accurate tables), scanned pages about 5 s. DOCX, PPTX and HTML take well under a second per document. Peak memory stayed under 2.5 GB on every test file, so 4 GB is the default; 8 GB gives 2 vCPUs and about 1.8× faster PDFs (start fee $0.01).

Integrations

  • Make, Zapier and n8n: use Apify's official app/node, choose Run Actor with tallowlanelabs/docling-document-converter, then read the dataset items. Typical flow: new file in Google Drive or Dropbox → run this Actor with the file URL → send Markdown to Notion, a vector DB or an LLM step.
  • Apify API and clients: call POST https://api.apify.com/v2/acts/tallowlanelabs~docling-document-converter/run-sync-get-dataset-items with your input as JSON to get the rows back in one request, or use the Python/JavaScript client:
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("tallowlanelabs/docling-document-converter").call(
run_input={"urls": [{"url": "https://arxiv.org/pdf/2408.09869"}], "chunking": True})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row["fileName"], row["pagesConverted"], row["status"])
  • AI agents (MCP): add Apify's MCP server with this Actor as a tool: https://mcp.apify.com?tools=tallowlanelabs/docling-document-converter. Claude, Cursor, VS Code and other MCP clients can then convert documents on demand.
  • Vector databases: turn on Output chunks as separate dataset rows and connect the dataset to Apify's Pinecone or Qdrant integration.
  • Webhooks: get notified when a run finishes and fetch the results.

FAQ

Is this the real Docling? Yes: the official open-source docling Python package (2.143.0 in the current build) with its layout, TableFormer and RapidOCR models. Each row reports doclingVersion.

Does it use an LLM or send my files anywhere? No. Everything runs inside your Apify run. No external APIs, no vision-language models.

Will scanned PDFs work? Yes. OCR = Auto OCRs only pages or regions without a text layer and bills $0.01 only for pages where OCR did most of the work. If a scan has a bad old text layer, use OCR = Force.

How are Word and HTML files billed? One page per started 3,000 characters of visible text (minimum 1). Markup and link URLs aren't counted.

What happens with very large or long files? Files up to 500 MB (100 MB by default) and up to 5,000 pages per document. Max pages per document (default 200) caps work and cost; truncated documents are flagged.

What isn't supported? Password-protected PDFs, legacy .doc and .ppt, and URLs that need a login. They come back as failed rows and cost nothing. Handwriting isn't supported, formulas come out as text, and pictures aren't described.

Can I cap the cost? Yes: set Apify's maximum cost per run and/or Max pages per document. The Actor stops at the cap without failing.

How long are results kept? Converted outputs follow your normal Apify storage retention. Source files are not kept.

Limits

  • Very complex tables (many merged header rows) can occasionally have shifted cells; check the JSON for exact cell coordinates.
  • OCR is tuned for Latin and Chinese scripts (PP-OCRv6).
  • You must have the right to process the documents you submit.

Open-source licenses

This Actor's code is MIT. Bundled components (all allow commercial use): Docling (MIT), docling-layout-heron model (Apache-2.0), TableFormer weights (CDLA-Permissive-2.0), RapidOCR and PP-OCR weights (Apache-2.0), all-MiniLM-L6-v2 tokenizer (Apache-2.0), PyTorch (BSD-3), ONNX Runtime (MIT).

Support

Open an issue on the Issues tab, or email Tallow Lane Labs at wdeornellas+tallowlanelabs@gmail.com. Feature requests (new formats, languages, output fields) are welcome.