PDF to Text, Markdown & Tables Extractor avatar

PDF to Text, Markdown & Tables Extractor

Pricing

from $2.00 / 1,000 pdf processeds

Go to Apify Store
PDF to Text, Markdown & Tables Extractor

PDF to Text, Markdown & Tables Extractor

Turn PDF URLs into clean text, LLM-ready Markdown and tables as rows (JSON, CSV, Excel). Page ranges, per-page output, safe metadata. Fast, no browser, no proxy. Pay per PDF and per page.

Pricing

from $2.00 / 1,000 pdf processeds

Rating

0.0

(0)

Developer

Penna & Pixel

Penna & Pixel

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

12 days ago

Last modified

Features

Limited permissions

Share

Turn PDF links into clean text, LLM-ready Markdown and real tables (rows and cells you can open in Excel or Google Sheets). No browser, no proxy, no OCR bill: it reads the text layer of digital PDFs directly, so it is fast and cheap.

What you get for each PDF

  • Full text in reading order, and Markdown with page markers (<!-- page 3 -->) ready for RAG and LLM prompts
  • Tables as rows of cells (tables[].rows), also embedded as Markdown tables inside the Markdown output
  • Page count, word count, character count, table count
  • Document metadata: title, subject, keywords, creator tool, producer, creation and modification dates
  • A scanned-PDF warning (isScanned, scannedPages) when pages contain only images, so you know when OCR would be needed
  • Optional one row per page (outputMode: "page"): ideal for chunking long documents

Use cases

  • Feed annual reports, manuals, papers and policies to an LLM or a vector database
  • Pull tables out of statistical reports, price lists, invoices and spec sheets into a spreadsheet
  • Index a document library for search
  • Monitor public PDFs (tenders, regulations, price lists) together with a scheduler

Input

{
"urls": [
"https://www.w3.org/WAI/WCAG21/working-examples/pdf-table/table.pdf",
"https://www.census.gov/retail/marts/www/marts_current.pdf"
],
"outputMode": "document",
"extractTables": true,
"pageRange": "1-5"
}
FieldWhat it does
urlsPublic PDF links (redirects are followed)
outputModedocument (one row per PDF) or page (one row per page)
extractTablesDetect tables and return them as rows (default on)
keepLayoutKeep columns aligned with spaces: best for tables without ruling lines
pageRange1-5, 1, 3, 10-12, 20- … empty = all pages
includePageTextsIn document mode, also add the text of each page
maxPagesPerPdf, maxFileSizeMb, parseTimeoutSecsSafety caps (pages over the cap are not read and not charged)

Output (a real run on the W3C example table, text field left out)

{
"url": "https://www.w3.org/WAI/WCAG21/working-examples/pdf-table/table.pdf",
"fileName": "table.pdf",
"status": "ok",
"pageCount": 1,
"pagesProcessed": 1,
"creatorTool": "Acrobat PDFMaker 9.0 for Word",
"producer": "Adobe PDF Library 9.0",
"createdAt": "2011-01-23T14:42:32-05:00",
"isScanned": false,
"wordCount": 65,
"tableCount": 1,
"markdown": "<!-- page 1 -->\n\nExample table\nThis is an example of a data table.\n\n| Disability Category | Participants | Ballots Completed | Ballots Incomplete/ Terminated | Results Accuracy | Time to complete |\n| --- | --- | --- | --- | --- | --- |\n| Blind | 5 | 1 | 4 | 34.5%, n=1 | 1199 sec, n=1 |\n...",
"tables": [{
"page": 1, "index": 1, "rowCount": 5, "columnCount": 6,
"rows": [
["Disability Category", "Participants", "Ballots Completed", "Ballots Incomplete/ Terminated", "Results Accuracy", "Time to complete"],
["Blind", "5", "1", "4", "34.5%, n=1", "1199 sec, n=1"],
["Low Vision", "5", "2", "3", "98.3% n=2 (97.7%, n=3)", "1716 sec, n=3 (1934 sec, n=2)"]
]
}]
}

Merged header cells are folded back into one header row, so the table keeps its real columns. In the dataset, the Overview view shows one line per PDF and the Text view the Markdown.

Links that fail (not a PDF, 404, too large, password-protected) appear as rows with status: "failed" and a readable error, and are not charged.

Pricing

Pay only for what is read:

  • $0.002 per PDF processed successfully
  • $0.0001 per page read
  • $0.003 per run start

One 10-page PDF in a run costs $0.006; 1,000 one-page invoices in one run cost about $2.10. Failed links, skipped pages and pages over your caps are free. You can always set a maximum cost per run in the run options.

Good to know

  • No OCR. Scanned PDFs (images only) return little or no text; they are flagged with isScanned so you can send just those to an OCR tool.
  • Tables: tables with ruling lines are detected best. For tables without lines, turn on keepLayout and you get the text with columns aligned, which LLMs read well.
  • Polite by design: the actor respects each site's robots.txt, waits between requests to the same site and refuses private or internal network addresses.
  • Privacy: the PDF Author field is deliberately not returned. Only extract documents you have the right to process.
  • Password-protected PDFs are reported as failed.

Support

Found a PDF that comes out wrong? Open an issue on the actor page with the link and what you expected: fixes are usually quick.