PDF to Markdown Converter & PDF Text Extractor for LLM/RAG
Pricing
$0.30 / 1,000 page extracteds
PDF to Markdown Converter & PDF Text Extractor for LLM/RAG
PDF to Markdown converter and text extractor for PDF URLs: headings, paragraphs and lists, or plain text, per document or per page for RAG. Text layer only, no OCR. $0.30 per 1,000 pages with text, max 15 billed per PDF. Free demo.
Pricing
$0.30 / 1,000 page extracteds
Rating
0.0
(0)
Developer
Lineage RSIUI
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
21 days ago
Last modified
Categories
Features
Share
Extract Text from PDF: PDF to Markdown & Plain Text for LLMs
Turn PDFs into clean Markdown or plain text. Give it links to PDF files. For each document it returns the text layer as:
- Markdown: headings (detected from font size), paragraphs, bulleted and numbered lists, with page markers;
- or plain text: line by line.
Output is one item per document, or one item per page for chunking in RAG and LLM pipelines.
Use this Actor when…
Use this Actor when:
- you have links to PDFs that have a text layer (born-digital reports, papers, manuals, specifications) and need their text as Markdown or plain text;
- you are feeding an LLM or RAG pipeline and want one dataset item per page (
outputPerPage) for chunking, with page markers; - you need many PDFs in one run: up to 100 URLs, 50 MB each, 500 MB in total.
Inputs: pdfUrls (required), confirmRights: true (required), outputFormat (markdown or text), outputPerPage, maxPagesPerPdf (default 200, up to 500).
Don't use it for: scanned or image-only PDFs (no OCR; those pages come back empty and aren't billed), tables as structured data, images, encrypted PDFs, file uploads (input is URLs only), or documents you have no right to process.
Try it free first
Run it with empty input. A free demo extracts the first 5 pages of RFC 9309, which isn't billed, so you can see the output format.
PDF text extraction: what it does and doesn't do
- Text layer only, no OCR. Scanned PDFs (images of text) have no text layer. Those pages come back empty, are listed in
pagesWithoutText, and aren't billed. - No tables or images. Table cells come out as text in reading order, and images are skipped.
- Headings are heuristic. They're detected from font size and spacing, so unusual layouts may get extra or missing headings.
- Untrusted files are handled safely. Scripts inside PDFs are never run and nothing is rendered. Each file is parsed in an isolated worker with time and memory limits.
- Languages: Chinese, Japanese and Korean PDFs are supported through pdf.js's bundled character maps. Exotic custom encodings may still lose text.
How to extract text from PDF URLs
- Paste your PDF URLs (up to 100 per run, 50 MB each, 500 MB in total).
- Tick I have the right to process these documents. Runs without it are refused.
- Choose Markdown or plain text, and per-document or per-page output.
- Optionally set Maximum pages per PDF (default 200, up to 500).
Output: Markdown or plain text, per document or per page
Each dataset item has:
url,title,totalPages,pagesRead,pagesWithText,pagesWithoutText,truncated,formatandbytes;contentfor the document, or for each page withpage.
Documents over 8 MB of text are saved whole to the run's key-value store, named by contentKey, and the item carries the first 200 KB. Failed documents carry an error:
not_a_pdf,encrypted,invalid_pdf,parse_error,timeoutortoo_complex(the file needed too much memory);http_404and other HTTP errors,too_largeandtoo_many_redirects;blocked_by_robots,blocked_private_address,scheme_not_allowedordenied_host;duplicate_document(the same file under another URL),run_limit_reachedortime_limit_reached.
Failed documents are never billed.
A SUMMARY record holds the counts.
Polite and safe by design
- robots.txt: honoured for every host, including
Crawl-delay. - Pacing: within a run, at most one request at a time per server, at least 500 ms apart, and at most 25 PDFs per site.
- Addresses: private and internal network addresses are refused at every redirect.
- What it never sends: cookies or credentials. It never tries to get around access controls or anti-bot protection.
- Identification: the user agent is
PdfTextExtractor/1.0, with a link to this page. - Site owners can opt out with
User-agent: PdfTextExtractorandDisallow: /in robots.txt. To report misuse, open an issue on this Actor's Issues tab.
Pricing
- Pay per event: each page with real text (at least 20 characters) is one
page-extractedevent. At most 15 pages are billed per document, however long it is. - Not billed: pages with fewer than 20 characters of text (blank or scanned pages, or a page number only), pages beyond your page limit, failed or duplicate documents, output that couldn't be saved, and the demo. A scanned page with a longer text stamp or banner counts as a page with text.
- The price is shown on the Pricing tab. You can cap the maximum charge per run in Apify's run options.
Terms of use
- Your rights: only process documents you own, that are licensed to you, or that you are otherwise allowed to use. You are responsible for copyright compliance.
- Personal data: if the documents contain personal data, you are responsible for having a lawful basis to process it.
- Where text goes: extracted text is stored only in your run's dataset and key-value store. The developer doesn't keep it or read it, and logs hold counts only.
- Limits per run: 100 PDFs, 50 MB per PDF, 500 MB in total, and 25 PDFs per site.
About
- Independent: made by an independent developer. Unofficial; not affiliated with or endorsed by Apify.
- Built with AI: built and maintained with the help of AI tools, under the developer's direction. Uses Mozilla's pdf.js (Apache-2.0).