PDF Parser: PDF to Text & Markdown Extractor (offline, RAG)
Pricing
from $2.00 / 1,000 pdf extracteds
PDF Parser: PDF to Text & Markdown Extractor (offline, RAG)
Extracts plain text, Markdown with headings and lists, per-page text, metadata and RAG-ready chunks from PDFs you link or upload as base64. Runs offline with pdfminer.six: no AI, no third-party API. Respects robots.txt and PDF permissions. Flags scanned pages (no OCR).
Pricing
from $2.00 / 1,000 pdf extracteds
Rating
0.0
(0)
Developer
WrenTools
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
PDF to Text & Markdown Extractor (offline, RAG chunks)
Turn PDFs into clean text and Markdown you can feed to a search index, an LLM or a spreadsheet. Give it links to PDF files, or send files inline as base64, and get back for each one: plain text, Markdown with headings and lists inferred from the layout, optional per-page text, optional RAG-ready chunks with page ranges, and the document's metadata.
Everything runs inside the Actor with pdfminer.six (MIT licence). Your files are not sent to any AI model or third-party API, and the result for the same file is the same every time.
Code example, in Python and Node: PDF to Markdown and RAG chunks.
The written versions: our post PDF to Markdown in Python: rebuilding headings, lists and paragraphs from font sizes shows how pdfminer.six's text boxes and font sizes become Markdown, with the code, and Why pdfminer.six runs all your text together on one line shows what happens when its layout analysis is off.
One PDF at a time, in your browser: our Chrome extension Offline PDF to Text & Markdown (with OCR) turns a PDF into plain text or Markdown on your own computer, scanned pages included, and nothing is uploaded. This Actor is for many PDFs at once, or for a pipeline your code runs.
Need the PDF itself to work with screen readers, not just its text? Our free, open-source PDF Access Fixer tags PDFs, including scans, on your own computer.
What you get
- Plain text, page by page, with paragraph breaks kept, in reading order: the order comes from where the text sits on the page, not the order the PDF draws it in, so two or three columns are read one column at a time and a title across the columns comes first. Tables come out a row a line, their cells separated by tabs, so they paste into a spreadsheet as cells.
- Markdown: the most common font size is the body text; short lines set clearly larger become
#,##and###headings; tables become Markdown tables (a cell wrapped onto two lines stays in its row); bullet and numbered lines become list items, nested by where their markers sit; words hyphenated across a line break are rejoined; and a Chinese or Japanese line break joins with no space, since those languages put none between words. - Running heads, running feet and page numbers left out, and counted in
linesLeftOut: a short line at the top or bottom of a page that repeats on another page with only its numbers changed, or a bare page number. A paragraph that runs on into the next column or page comes back as one paragraph. Text turned to another angle (a margin stamp, a watermark) is kept, as its own paragraph after the page's text. - Per-page text (
includePages), for citing page numbers. - RAG chunks (
chunkSize): Markdown split at paragraph boundaries into pieces of at most that many characters, each withpageStartandpageEnd, with an optional overlap. - Metadata: title, author, subject, keywords, creator, producer, creation and modification dates.
- Scanned-page detection: pages with no text layer are listed in
pagesWithoutText, andlikelyScannedis set when half or more of the pages have none. This Actor does not run OCR: send those pages to Image & Scanned PDF OCR.
Failed files are reported in the dataset with a reason and are not charged: fetch-failed, file-too-large,
memory-too-small (the run's memory does not hold the file; the message names the memory that would),
not-a-pdf, unreadable-pdf, robots-disallowed, robots-disallowed-redirect (the link redirected to a URL that
site's robots.txt does not allow, so it was not fetched there), password-required, extraction-not-permitted,
extraction-timeout (the run's timeout came during its first page), invalid-base64.
A file whose whole reply takes longer than its time limit is a fetch-failed row whose message starts
deadline-exceeded, and the run goes on to the next. The limit is the largest file maxFileSizeMb
allows at 333 kB/s, between 60 s and 600 s (150 s at the default 50 MB). So a server that sends a file
very slowly cannot hold the run.
Respectful by design
- Only the files you name are downloaded, one request each. The site's robots.txt is read first and obeyed, and so is the robots.txt of the site any redirect leads to, before the request goes there; downloads from one site are spaced (500 ms by default). No proxy, no browser, no login.
- PDF permissions are honoured. A PDF that needs a password is refused (the Actor takes no password), and so is a PDF whose owner has forbidden copying or extracting its text.
- Only public internet addresses are fetched: a URL or redirect into a private, loopback or link-local network is refused.
Process only documents you have the right to use.
Input
| Field | Type | Default | Notes |
|---|---|---|---|
pdfUrls | array | - | Links to PDF files. |
pdfBase64 | array | - | Inline files: base64 strings, or {"name": "invoice.pdf", "data": "<base64>"}. A data: URL prefix is fine. |
outputFormat | string | both | both, markdown or text. |
includePages | boolean | false | Adds pages: [{"page": 1, "text": "..."}]. |
chunkSize | integer | 0 | Characters per RAG chunk; 0 is off, otherwise at least 200. |
chunkOverlap | integer | 200 | At most half the chunk size. |
maxPagesPerPdf | integer | 500 | Longer files are marked truncated. |
maxFileSizeMb | integer | 50 | Up to 200. |
requestDelayMs | integer | 500 | Pause between downloads from one site. |
Output
One dataset item per PDF, in input order:
{"source": "https://example.com/reports/q3.pdf", "url": "https://example.com/reports/q3.pdf","finalUrl": "https://example.com/reports/q3.pdf", "fileName": "q3.pdf", "status": "ok", "error": null,"pageCount": 3, "pagesExtracted": 3, "truncated": false,"metadata": {"title": "Quarterly Field Report", "author": "Field Team", "creationDate": "2026-10-01T09:00:00"},"pagesWithoutText": [3], "likelyScanned": false, "linesLeftOut": 0, "charCount": 512, "wordCount": 88,"text": "Quarterly Field Report\n\n1. Summary\n\nThe survey covered ...","markdown": "# Quarterly Field Report\n\n## 1. Summary\n\nThe survey covered ...","chunks": [{"index": 0, "text": "# Quarterly Field Report ...", "pageStart": 1, "pageEnd": 1, "charCount": 287}]}
A failed file:
{"source": "https://example.com/locked.pdf", "status": "error","error": {"code": "extraction-not-permitted", "message": "the PDF's owner forbids copying or extracting its text, so it is not extracted"}}
A result too large for one dataset item (over 8 MB) keeps its counts and metadata in the dataset; the text, Markdown,
pages and chunks are stored in the run's key-value store, at fullOutputKey / fullOutputUrl.
Key-value store record SUMMARY: PDFs requested, extracted and failed, pages extracted, and why the run stopped early
if it did.
Pricing
Pay per event, no start fee, and nothing for files that fail:
| Event | Price | Per 1,000 |
|---|---|---|
pdf-processed (one PDF extracted) | $0.002 | $2.00 |
page-extracted (each page of it) | $0.0001 | $0.10 |
A 10-page PDF costs $0.003; a 100-page PDF costs $0.012. When you set a maximum charge for a run, the Actor stops
before a file it cannot pay for, and extracts only the pages the remainder covers (the item is marked truncated).
Limits
- No OCR: scanned pages come back empty and are listed in
pagesWithoutText. - A table whose columns are set closer together than the type size (about two letters' width) is read as lines of text, and merged cells are not rebuilt.
- A running head is left out only when it repeats on another page, so a one-page document keeps its own, and so does a two-page document whose pages carry different heads.
- A compound word broken at its own hyphen at a line end ("self-" then "selected") is joined without the hyphen unless the document writes it whole elsewhere.
- Markdown headings are inferred from font size, so a document that sets headings in body-size bold reads as text.
- A run stops early, before its timeout, so its results are saved: 60 s before it (a fifth of the time for a run
shorter than 5 minutes) it starts no new file, and a download still running then is cut and reported as
fetch-failed(deadline-exceeded), not charged. A long PDF is stopped between pages, early enough to finish it: its item is markedtruncatedwithtruncatedReason"the run's timeout" and charged for the pages extracted. A page still being extracted 10 s before the timeout is cut (half the margin, for a run shorter than 5 minutes), early enough to finish the pages before it, and not charged: the file keeps the pages before it, marked the same way, or, if it was the file's first page, is reported asextraction-timeout. Files not started are not in the dataset and not charged, andSUMMARY.stoppedReasonsays why the run stopped. - Memory: a PDF is held about twice over while it is read (its bytes, and the reader's copy of each object it reads),
so a 200 MB file needs roughly 450 MB in all, and the 1,024 MB default holds the largest file (measured locally). A
file the run's memory does not hold is reported as
memory-too-small, naming the memory that would, and is not charged; the run goes on to the next file. Extracted text takes up to about 22 bytes of memory a character (withincludePagesand chunks); a PDF whose text fills what is left is stopped between pages, markedtruncatedwithtruncatedReason"the run's memory", and charged for the pages extracted. Each file is let go before the next.