PDF Extractor — Text, Metadata and Scored Tables
Pricing
from $1.50 / 1,000 results
PDF Extractor — Text, Metadata and Scored Tables
Turn any PDF URL into clean text plus document metadata, and detect scanned PDFs that need OCR. Tables are extracted best-effort with a quality score, so low-quality grids are dropped rather than billed. Keyless, HTTP-only.
Pricing
from $1.50 / 1,000 results
Rating
0.0
(0)
Developer
Farhan Febrian Nauval
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
16 days ago
Last modified
Categories
Features
Share
Turn any PDF URL into clean text plus document metadata. Detects scanned PDFs that need OCR, and flags PDFs whose font encoding destroyed the word boundaries. Tables are extracted best-effort, with a quality score — and low-quality grids are dropped rather than billed to you.
Keyless, HTTP-only, no browser.
What you get
| Field | Meaning |
|---|---|
text, charCount, wordCount | The document as text |
pageTexts | One entry per page, when includePageTexts is on — lets you cite page numbers |
pageCount, pagesRead | Total pages, and how many were read |
likelyScanned, charsPerPage | Whether this is images rather than text |
spacingLooksBroken, spaceRatio | Whether word boundaries survived extraction |
title, author, subject, creator, producer | Document metadata |
createdAt, modifiedAt | Normalised from the PDF date format |
tables, tableCount, tableStrategy | Tables that passed the quality gates |
tablesDroppedAsLowQuality | How many candidates were rejected, so nothing is silently discarded |
Read this before turning tables on
Table detection in PDFs is unreliable, and this actor is built to admit it. Tested against three real documents:
| Document | Result |
|---|---|
| BLS CPI release | One genuine table — 5 rows × 4 columns, 95% filled |
| arXiv paper | No tables, 7 candidates rejected — its tables have no ruling lines and every strategy produced prose in a grid |
| IRS 1040 form | No tables, 19 candidates rejected — pdfplumber reports the form's ruled boxes, 85% empty |
So one of three documents yielded a table. extractTables is off by default, and
when on, three strategies are tried and every candidate must clear four gates:
- at least 3 rows and 2 columns — anything smaller is page furniture
- at least 35% of cells populated — a genuine statistical table measured 95%; the IRS form's boxes measured 14.6%
- under 25% mid-word splits — the
textstrategy builds columns from whitespace positions, so a paragraph becomes a wide, well-filled, consistent grid that reads['Transmissio', 'n of mat', 'erial in', …]. Shape alone is not evidence of a table - a combined score above
minTableQualityPercent
tablesDroppedAsLowQuality tells you how many were thrown out, so a zero-table
result is distinguishable from a PDF that was never examined.
Things worth knowing
A 404 is often served as text/html. Existence is judged on the %PDF- magic
bytes, not on the status code or content type, and a non-PDF body is reported as
not_a_pdf with what it actually started with.
Scanned PDFs are detected, not silently empty. Under roughly 40 characters per page means the document is images. The row says so and the log warns, rather than returning blank text.
Some PDFs lose their spaces. Certain font encodings extract as
Providedproperattributionisprovided — real text, no word boundaries. The arXiv
paper tested at a 0.028 space ratio against 0.158 and 0.203 for two government
documents, so the cases separate cleanly. This is reported, not repaired:
re-inserting spaces needs a dictionary and would be guessing at the document's
actual words.
Failure reporting
_error | Meaning |
|---|---|
not_a_pdf | The body is not a PDF — often an HTML error page |
pdf_unreadable | A PDF that could not be parsed, with the underlying reason |
too_large | Above the size limit |
request_failed | Never reached, with the cause |
Related
Sitemap Crawler finds a site's PDF URLs; Website Content Extractor does the same job for HTML pages.