PDF Text Extractor: PDF to Markdown & Text for LLMs avatar

PDF Text Extractor: PDF to Markdown & Text for LLMs

Pricing

from $1.50 / 1,000 pages

Go to Apify Store
PDF Text Extractor: PDF to Markdown & Text for LLMs

PDF Text Extractor: PDF to Markdown & Text for LLMs

Extract text from PDF files as clean Markdown and plain text. Bulk PDF URLs in, one item per file out, with headings, paragraphs and lists kept. Built for LLM, RAG, AI agents and search indexes. No browser, fast and cheap. Pay per page, failed files are free.

Pricing

from $1.50 / 1,000 pages

Rating

0.0

(0)

Developer

Markus Heiß

Markus Heiß

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Turn PDF files into clean Markdown and plain text. Give it a list of PDF links, get back one item per file with the full document as Markdown.

Made for people who feed documents into LLMs, RAG pipelines, search indexes or note apps and are tired of broken line breaks and lost headings.

What it does

  • Downloads each PDF from its URL.
  • Rebuilds the reading structure from the text layer:
    • Headings from font size (#, ##, ###)
    • Paragraphs joined across line breaks, hyphenated words repaired
    • Bullet and numbered lists
  • Adds optional page markers (<!-- page 3 -->) so you can cite pages.
  • Returns the title and author from the PDF metadata.
  • Runs without a browser, so it is fast and cheap.

Input

FieldDescriptionDefault
PDF URLsDirect links to PDF files
Max pages per filePages beyond this limit are skipped and not charged500
Page markersInsert <!-- page N --> before each pageon
Include plain textAlso return raw text with line breakson
Max file size (MB)Larger files are skipped with an error50

Output

One dataset item per PDF:

{
"url": "https://arxiv.org/pdf/1706.03762",
"fileName": "1706.03762",
"title": "Attention Is All You Need",
"author": null,
"pageCount": 15,
"convertedPages": 15,
"truncated": false,
"markdown": "<!-- page 1 -->\n\n# Attention Is All You Need\n\n...",
"text": "Attention Is All You Need\n...",
"characters": 39876,
"error": null
}

Export as JSON, CSV or Excel, or read it through the Apify API.

Pricing

Pay per converted page. Pages without text (for example scanned images) and failed files are not charged. You can cap the cost of a run with the maximum charge setting in Apify.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

Limits

  • Scanned PDFs without a text layer return an error that says so. They need OCR.
  • Tables are returned as text lines, not as Markdown tables.
  • Multi-column layouts are read in the order the PDF stores the text, which is usually correct but not always.
  • Only public http and https links. Password protected PDFs are not supported.
  • Data source: The files at the URLs you enter. The Actor downloads each file once during the run.
  • Snapshot: Results show the source at the time of the run. We do not guarantee that they are complete, current or correct.
  • For business use: This Actor is offered to businesses only, not to consumers.
  • Permitted use: Process only content you are allowed to access and use, for example your own websites and documents or public pages you have a legitimate reason to process. Respect the terms of the websites and the rights in the content.
  • Your responsibility: You choose the URLs and decide what happens with the results. If results contain personal data, you are the controller and need your own legal basis.
  • No circumvention: The Actor does not log in, solve captchas or bypass paywalls, bot protection or other access restrictions. Do not use it for that.
  • Request volume: One download per PDF link. Do not use it to put excessive load on a website.
  • Provider: forgeloop, Markus Heiss, Austria. Imprint, Privacy Notice, Terms of Use.

Questions and issues

Open an issue on the Actor page. Bugs are fixed quickly.