PDF text extractor and PDF scraper: extract text from PDF URLs in bulk. Full document text, optional per-page text, page count, word count and document info. Fast, no browser. Text-layer PDFs only (no OCR). For RAG, LLM pipelines and search indexing. $2 per 1,000 PDFs. Plus $0.00005 start.
Unreleased: invalid input no longer crashes (2026-11-04, local, not built or pushed; based on cloud build 1.0.5)
Fix: input that is not a JSON object (a string, number, null or list) crashed the run with exit 91. It now ends with exit 0 and one free status row: Invalid input, nothing was fetched and no results were charged: the input must be a JSON object, got <type>.
Fix: wrong-type or unusable values that crashed with exit 91 before anything was fetched now end the same way (exit 0, one free status row with charged: false, no RUN_SUMMARY, no charged event) with the reason <field> has the wrong type (<error>). Covered: pdfUrls (a number, true, or a list with numbers), maxPagesPerPdf, maxFileSizeMb, maxCharacters, maxResults, maxConcurrency.
The check repeats the exact conversions the run makes, before any request; valid input behaves exactly as before. Network, HTTP and upstream errors are unchanged.
Memory: defaultMemoryMbytes is now 256 (was 1024) and minMemoryMbytes 128 (was 256); max 4096 unchanged. The README does not name a memory size; its start-fee wording ($0.00005 per run) is still right at 256 MB (1 event).
2026-11-11 (actor.json version 1.0 -> 1.1): opt-in OCR for scanned pages (staged, not pushed)
New inputs ocrMode (default off), ocrLanguages, ocrMaxPagesPerPdf, ocrMinChars, ocrDpi. With ocrMode
off, rows, RUN_SUMMARY, charges and the status message are identical to 1.0 (tested against the 1.0 tree).
OCR: pages are rendered with pypdfium2 and read with Tesseract 5 (Docker image now installs tesseract-ocr and 8
language packs). New PPE event ocr-page (proposal $0.002 per page). New row fields ocrMode, ocrLanguages,
ocrPages, ocrPageCount, ocrPagesSkipped, ocrMeanConfidence, textSource, ocrError; per-page
textSource; RUN_SUMMARY ocrMode, ocrPages, ocrPagesSkipped, pdfsWithOcr (only when OCR is on).
With OCR on, every row's price and its OCR pages are reserved against the max cost per run (and maxResults)
before any OCR work; OCR is never charged for a row that is not output.
Invalid OCR input (also when ocrMode is off) or missing language data: one free status row, nothing fetched.
2026-11-02 (actor.json version unchanged: 1.0): private-address (SSRF) guard
On the Apify platform, every request (the PDF URL, each redirect hop, and robots.txt) is refused when the host
resolves to a private, loopback, link-local, carrier-grade NAT, reserved, multicast or unspecified address
(including IPv4-mapped IPv6), or when any of the host's addresses is one. Same rules as Bulk HTTP Request.
Such a URL is never charged (other error rows are still charged as before, see Pricing). With includeFailedUrls
on it gets a free row: error: "not fetched: private, loopback and link-local addresses are not allowed",
status: "error", message: "Not charged: this URL was not fetched (...)". With includeFailedUrls off it is
dropped; if no row is output at all, the dataset gets one free status row (recordType: "status",
message: "Not charged: N URL(s) were not fetched (...)"). It counts as failed in RUN_SUMMARY.
A host the guard cannot resolve fails as a DNS error, as before (still a charged error row, as before); only the
text now reads "DNS or connection error: DNS lookup failed for ".
A robots.txt that redirects to a private address counts as unavailable (no robots.txt rules).
Local runs (APIFY_IS_AT_HOME not set) are unchanged.
Files: my_actor/common.py (guard helpers, blocked_status_row; Http._robots_for checks the site first),
my_actor/main.py (hook on the httpx client, Blocked handled), tests/test_ssrf_guard_1102t.py (new),
README Limits (one line), this CHANGELOG (new).