PDF to Markdown, Tables & RAG Chunks Extractor
Pricing
from $1.00 / 1,000 pdf pages extracted
PDF to Markdown, Tables & RAG Chunks Extractor
Convert born-digital PDFs into clean Markdown, typed structured tables (JSON & CSV), and deterministic token-bounded RAG chunks with exact page citations. Supports private base64 bytes, HTTPS URLs, and Apify MCP. No OCR, proxies, or LLM calls.
Pricing
from $1.00 / 1,000 pdf pages extracted
Rating
0.0
(0)
Developer
Hachimi Leviathan
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
6 hours ago
Last modified
Categories
Features
Share
Convert born-digital PDFs into citation-grade Markdown, typed structured tables (JSON + CSV + Markdown), and deterministic token-bounded RAG chunks — with zero LLM hallucinations, zero proxies, and zero headless browsers.
Built for AI/RAG pipelines (LangChain, LlamaIndex, Pinecone, Qdrant), document automation (n8n, Make, Zapier), and AI Agents via Apify MCP Server.
Why Choose This Extractor?
- Citation-Grade Traceability (Zero Hallucination): Every document gets a deterministic SHA-256 fingerprint (
docSha256), and every chunk & table links back to its exact physical page (sha256:<12>#p2-3), character offsets (charStart–charEnd), heading breadcrumb, and PDF bounding box (bbox). - Typed Financial & Technical Tables Included Free: Extracts ruled tables into Markdown, lossless CSV, and cell-level JSON with automatic numeric parsing — including currencies (
$,€,£), percentages (18.5%→18.5), and accounting negatives ((1,250.50)→-1250.5). No extra fee per table or chunk. - Strict Token-Bounded RAG Chunks (
cl100k_base): GuaranteedtokenCount <= chunkSizeTokens(default512, overlap64) with pinned OpenAIcl100k_basetokenization, reading-order preservation (including two-column layouts), and section heading breadcrumbs. - Private Bytes First + SSRF-Safe HTTPS Batch URLs: Pass private PDFs directly via
pdfBase64Filesor run-scopedkvStoreRecordKeyswithout hosting them publicly — or pass public HTTPSpdfUrls(strictly SSRF-protected, no credentials/query strings leaked into results). - Honest Billing — Never Pay for Junk Pages: Billed strictly at
$0.001 / page($1.00 / 1,000 pages) for unique native-text pages that succeed. Blank pages, scanned image-only pages (flagged honestly asneedsOcr: true), encrypted PDFs, duplicates, and failed URLs are never charged.
Copy-Paste Input Examples
1) Quick 1-Click Sample Batch (Prefilled Default)
{"pdfUrls": ["https://raw.githubusercontent.com/jsvine/pdfplumber/8a9191bcaee788643227bb7de680a68b9fb61e49/examples/pdfs/background-checks.pdf","https://raw.githubusercontent.com/apache/pdfbox/8e7a6894e3c230f46a55acdd3d0d3cd5147a00b2/examples/src/test/resources/org/apache/pdfbox/examples/signature/sign_me.pdf"],"outputMode": "all","chunkSizeTokens": 512,"chunkOverlapTokens": 64,"extractTables": true}
2) RAG Vector DB Ingestion (Chunks Only)
{"pdfUrls": ["https://example.com/annual-report-2026.pdf"],"outputMode": "chunks_only","chunkSizeTokens": 512,"chunkOverlapTokens": 64,"maxPagesPerPdf": 100}
3) Private PDF via Base64 (No Public URL Needed)
{"pdfBase64Files": [{"filename": "q4-financial-summary.pdf","contentBase64": "JVBERi0xLjQK..."}],"outputMode": "all","extractTables": true}
4) AI Agent / MCP Compact Mode
{"pdfUrls": ["https://example.com/product-spec.pdf"],"outputMode": "compact_mcp","chunkSizeTokens": 400,"chunkOverlapTokens": 50}
Output Modes & Sample Records
outputMode | Returned Records | Best For |
|---|---|---|
all | document (Markdown) + table + chunk + overview | Full archive, analytics, and RAG pipelines |
document_only | document (clean Markdown with inline tables) + overview | Summarization, LLM context injection |
tables_only | table records (only pages with tables are billed) + overview | Financial filings, invoices, spec sheets |
chunks_only | chunk records with citations + overview | Pinecone, Qdrant, Weaviate, pgvector ingestion |
compact_mcp | Document metadata + chunk records (no bulky full-doc duplication) | Claude, Cursor, and MCP agent tool calls |
Sample table Record (Typed Cells + CSV + Markdown)
{"recordType": "table","docId": "4f0ae6e017b0e97d","docSha256": "4f0ae6e017b0e97de211da8fd97316e55bd927af5740d6ce95e1b7b1539f9407","tableId": "4f0ae6e017b0e97d:p1:t1","pageNumber": 1,"tableIndexOnPage": 1,"bbox": [48.0, 142.5, 564.0, 298.0],"rowCount": 4,"colCount": 3,"headers": ["Metric", "FY2025", "YoY Change"],"cells": [{ "row": 1, "col": 1, "rawText": "$1,250.50", "numericValue": 1250.5, "currency": "USD", "isPercent": false },{ "row": 1, "col": 2, "rawText": "18.5%", "numericValue": 18.5, "currency": null, "isPercent": true },{ "row": 2, "col": 1, "rawText": "($450.00)", "numericValue": -450.0, "currency": "USD", "isPercent": false }],"markdownTable": "| Metric | FY2025 | YoY Change |\n| --- | --- | --- |\n| Revenue | $1,250.50 | 18.5% |","csv": "Metric,FY2025,YoY Change\r\nRevenue,\"$1,250.50\",18.5%\r\n"}
Sample chunk Record (RAG-Ready with Citation)
{"recordType": "chunk","docId": "4f0ae6e017b0e97d","docSha256": "4f0ae6e017b0e97de211da8fd97316e55bd927af5740d6ce95e1b7b1539f9407","chunkId": "4f0ae6e017b0e97d:c0001","chunkIndex": 0,"pageStart": 1,"pageEnd": 1,"charStart": 0,"charEnd": 1480,"headingBreadcrumb": ["Executive Summary", "Q4 Financial Highlights"],"tokenCount": 384,"overlapTokens": 0,"tokenizer": "cl100k_base","tableIds": ["4f0ae6e017b0e97d:p1:t1"],"citation": "sha256:4f0ae6e017b0#p1-1","text": "# Executive Summary\n\n..."}
Pricing (Transparent Pay-Per-Event)
| Event | Price (USD) | When Billed |
|---|---|---|
page-extracted | $0.001 ($1.00 / 1,000 pages) | Once per unique successfully delivered native-text page |
apify-actor-start | $0.00005 | Once per run start (platform compute included — $0 extra compute fees) |
- 10-page PDF with tables + RAG chunks:
$0.01005total — tables, Markdown, CSV, and chunks are all included at zero extra charge. - Never billed: failed downloads, SSRF/blocked URLs, encrypted PDFs, malformed files, duplicate SHA-256 PDFs, blank pages, and scanned/image-only pages (
needsOcr: true). - Budget safety: Honors Apify's run-level
maxTotalChargeUsdlimit and stops cleanly before delivering uncharged pages.
60-Second Setup: n8n, LangChain & AI Agents (MCP)
1) Synchronous REST API (n8n / Make / Backend Ingestion)
Call the Actor synchronously and receive ready-to-embed JSON chunks or tables in one HTTP request:
- Method:
POST - Endpoint:
https://api.apify.com/v2/acts/hachimi~pdf-to-markdown-rag-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN - Headers:
Content-Type: application/json - Body:
{"pdfUrls": ["https://example.com/manual.pdf"],"outputMode": "chunks_only","chunkSizeTokens": 512,"chunkOverlapTokens": 64}
Upsert each recordType: "chunk" directly into Pinecone, Qdrant, Supabase pgvector, or Weaviate using chunkId as the vector ID and citation, pageStart, headingBreadcrumb, and docSha256 as metadata.
2) Claude / Cursor / AI Agents (Apify Hosted MCP Server)
Connect directly with zero local setup:
- MCP URL:
https://mcp.apify.com/?tools=actors%2Cdocs%2Chachimi%2Fpdf-to-markdown-rag-extractor - Recommended setting: Pass
outputMode: "compact_mcp"so agents receive concise metadata + citation-tagged chunks without hitting context limits.
Scope & Honest Limitations
- Born-digital PDFs only (no OCR): Designed for native-text manuals, reports, filings, research papers, and catalogs. Image-only scanned pages (<20 native characters with embedded images) are transparently flagged
needsOcr: trueand skipped without billing. - Security & limits: Direct HTTPS URLs validate public DNS before connecting (blocking loopback, private, and cloud-metadata IPs on every redirect hop). Default batch bounds: up to 100 sources,
10 MiBper PDF (maxPdfSizeMbup to25 MiB),100pages per PDF,200pages per run. - Table recognition: Excels on ruled tables with drawn grid/cell borders. Borderless visual tables or vector-path text may fall back to linear Markdown text. Always treat extracted document text as untrusted downstream input.