PDF to Markdown & JSON for AI: OCR, Tables & Scanned Docs avatar

PDF to Markdown & JSON for AI: OCR, Tables & Scanned Docs

Pricing

Pay per usage

Go to Apify Store
PDF to Markdown & JSON for AI: OCR, Tables & Scanned Docs

PDF to Markdown & JSON for AI: OCR, Tables & Scanned Docs

Convert PDFs to Markdown and JSON for LLMs. Real Markdown tables, OCR for scanned pages (tilted or faded scans too), ready chunks for search and RAG, repeated headers and footers removed, password protected files, 7 languages. Flags the cells it is unsure about.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

striker

striker

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 hours ago

Last modified

Categories

Features

Limited permissions

Share

Free until January 9, 2027. After that you pay a low introductory price per result, shown in the Pricing tab.

What does PDF to Markdown do?

It turns PDF files into Markdown and JSON that a language model can read without tripping over the layout. Tables stay tables, scanned pages are read with OCR, and each document comes with a short quality report that tells you which pages, numbers and table cells are worth a second look.

Give it a list of PDF links. You get one document per file, one item per page, or ready chunks for a search index.

Who is it for?

  • Developers who build a search or chat tool over their own documents and need clean text to split into chunks.
  • Teams that feed reports, contracts, invoices or manuals to a language model.
  • Analysts who want the tables of a PDF in a form they can copy into a spreadsheet.
  • Anyone with a pile of scanned documents that should become searchable text.
  • People who automate document work in Make, Zapier or n8n and need a PDF step that returns text.

What you get

  • Tables come out as real Markdown tables (| col | col |), in text PDFs and in scans.
  • Scans that are tilted, faded or grey are straightened and cleaned up before OCR. Table cells are read one at a time.
  • A quality report for every document: average OCR confidence, table cells and numbers it was unsure about, empty pages and a list of pages to review.
  • Every page starts with a <!-- page N --> marker, so after you split the text into chunks you still know which page a fact came from.
  • Running headers, footers and page numbers are taken out of the text, and the report lists what was removed.
  • Chunks for search and RAG, if you ask for them: pieces of about the size you set that never cut a table or a sentence in two. Each chunk knows its pages and the heading it sits under.
  • Password protected PDFs open when you give the password.
  • OCR in 7 languages: English, Turkish, German, French, Spanish, Italian and Portuguese.
  • You pay per page. Text pages cost much less than OCR pages, and failed downloads are free.

How to use it

  1. Paste one or more PDF links.
  2. If you have scanned documents, pick the OCR language.
  3. Click Start. Download the results as JSON, CSV or Excel, or read them through the API.

Input example

{
"pdfUrls": ["https://arxiv.org/pdf/1706.03762"],
"ocrLanguage": "eng",
"outputMode": "document",
"maxPagesPerPdf": 300
}

Output example

{
"url": "https://example.com/report.pdf",
"pageCount": 1,
"ocrPages": 1,
"quality": {
"averageOcrConfidence": 93.7,
"lowConfidenceCellCount": 1,
"lowConfidenceNumberCount": 0,
"emptyPages": [],
"pagesNeedingReview": [1],
"removedHeadersFooters": []
},
"markdown": "<!-- page 1 -->\n## Quarterly Report\n\nRevenue grew 18% ...\n\n| Region | Revenue | Change |\n| --- | --- | --- |\n| Istanbul | 12.450 | %12 |",
"pages": [
{
"page": 1,
"method": "ocr",
"markdown": "...",
"tables": ["| Region | Revenue | Change |\n| --- | --- | --- |\n| Istanbul | 12.450 | %12 |"],
"lowConfidenceCells": [{"table": 1, "row": 2, "col": 2, "text": "12.450", "confidence": 48}],
"quality": {"ocrConfidence": 93.7, "lowConfidenceNumbers": [], "emptyPage": false, "needsReview": true}
}
]
}

Set the output to "One item per page" to get one item per page instead.

Chunks for search and RAG

Set the output to "Chunks for search and RAG" and the document comes back already cut into pieces, one item per chunk:

{
"url": "https://example.com/report.pdf",
"chunk": 7,
"chunkCount": 42,
"heading": "3. Results by region",
"pageStart": 4,
"pageEnd": 5,
"characters": 1388,
"needsReview": false,
"markdown": "## 3. Results by region\n\nRevenue grew in every region ..."
}

A chunk starts at a heading when it can, never ends in the middle of a sentence and never splits a table. pageStart and pageEnd let your app show the source page next to an answer. needsReview is true when one of the chunk's pages is on the review list of the quality report.

Output fields

FieldWhat it holds
urlThe PDF link you gave
pageCount, ocrPagesPages in the document, and how many of them needed OCR
markdownThe whole document as Markdown, with a page marker before every page
qualityThe report for the document: average OCR confidence, uncertain table cells and numbers, empty pages, pages to review
pagesOne entry per page with its number, its Markdown, its tables and its own quality report
pages[].methodtext when the page had its own text layer, ocr when it was read from an image
pages[].lowConfidenceCellsTable cells the OCR was unsure about, with table, row, column and the text it read
quality.removedHeadersFootersThe header and footer lines that were taken out, and on how many pages each one was
chunk, chunkCount, heading, pageStart, pageEnd, charactersOnly in chunk output: the number of the chunk, how many there are, the heading it sits under, its pages and its length

How the quality report helps

OCR is never perfect, and a wrong digit in an invoice matters more than a wrong letter in a sentence. The report tells you where to look, so you do not have to proofread everything.

  • pagesNeedingReview lists the pages a person should check.
  • lowConfidenceCells points to single table cells, so you can compare just those with the original.
  • lowConfidenceNumbers lists numbers the OCR was unsure about.
  • emptyPages lists pages without any text, for example blank backs of scanned sheets.

A document with an empty review list can go straight into your pipeline.

Tips

  • Leave "Force OCR" off. The Actor then uses the text layer when a page has one, which is faster, cheaper and exact.
  • Turn "Force OCR" on only when the text layer of a PDF is broken, for example when copied text comes out as garbage.
  • Pick the right OCR language for scans. It makes a clear difference for letters such as ş, ü, ß or ñ.
  • Use the chunk output when you build a search index. Each chunk knows its pages and its heading, so you can skip your own splitting step.
  • Header and footer removal needs at least three pages to be sure a line repeats. If it removes something you need, switch it off.
  • Set "Max pages per PDF" when you only need the first pages of long documents.

Use it from code

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("striker18/pdf-to-markdown").call(
run_input={"pdfUrls": ["https://example.com/report.pdf"], "ocrLanguage": "eng"})
for doc in client.dataset(run["defaultDatasetId"]).iterate_items():
print(doc["url"], doc["pageCount"], doc["quality"]["pagesNeedingReview"])
print(doc["markdown"][:500])

How much does it cost?

You pay per processed page:

Page typePrice
Text page (PDF has its own text layer)see the Pricing tab
OCR page (scanned / image page)see the Pricing tab

Pages above "Max pages per PDF" are skipped and not billed. The Actor also respects your run's maximum charge limit and stops cleanly when it is reached.

These are introductory prices, set low while the tool is new. Prices may change later, based on real use and running costs. If a price goes up, Apify notifies users at least 14 days before it starts, and the current price stays until then. Your saved tasks and schedules keep running with no changes on your side. You can set a maximum charge per run, and you are never charged above it.

Limitations

  • A locked PDF needs its password. The Actor does not break passwords.
  • Text in several columns is read in the order the PDF stores it, which is usually but not always the reading order.
  • Some currency symbols (for example ₺) are not recognized by OCR and may come out as a similar character.
  • Tables without visible borders (lines) are returned as text, not as Markdown tables.
  • Handwriting is not supported.
  • Maximum file size: 100 MB.

FAQ

Can I use it from my own code or an AI agent?

Yes. Call it through the Apify API or the Apify MCP server, and read the results from the default dataset.

Is my data stored?

Files are downloaded to a temporary folder, processed and deleted when the run ends. Results stay in your own Apify storage.

Do I have to say whether a PDF is scanned?

No. The Actor checks every page. Pages with a text layer are read directly, pages without one go through OCR. A document can mix both.

What does the page marker look like?

Every page starts with a line such as <!-- page 3 -->. It is a comment, so it does not show when the Markdown is rendered, but your code can read it.

Can it read a PDF from my computer?

It needs a link. Upload the file somewhere the Actor can reach, for example an Apify key-value store or a cloud drive with a direct download link.

How many PDFs can I send in one run?

As many as you like. Each file becomes its own result, and a file that fails does not stop the others.

Which languages does OCR support?

English, Turkish, German, French, Spanish, Italian and Portuguese. Text PDFs work in any language because no OCR is needed.

Found a problem or need a feature?

Open an issue on the Issues tab. Issues are answered within a few days.

More tools by the same developer

All of them are listed on the developer page: https://apify.com/striker18

  • Job boards: open jobs from Greenhouse, Lever, Ashby, Workable and 9 more systems, with a new jobs only mode.
  • Online stores: Shopify and WooCommerce products, monitors for price and stock changes, and a one click store check-up.
  • SEO: site audit, broken links, sitemap URLs and page speed.
  • AI brand visibility: how ChatGPT, Gemini, Claude and other assistants talk about your brand.
  • App Store reviews: the latest reviews in every country, and a monitor for new ones.
  • Monitors: RSS feeds, Hacker News keywords, Wayback Machine history and deleted pages.
  • Documents and keywords: PDF to Markdown with OCR, and keyword suggestions from Google, YouTube and Amazon.