PDF Extractor — Text, Metadata and Scored Tables avatar

PDF Extractor — Text, Metadata and Scored Tables

Pricing

from $1.50 / 1,000 results

Go to Apify Store
PDF Extractor — Text, Metadata and Scored Tables

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

Farhan Febrian Nauval

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

16 days ago

Last modified

Features

Limited permissions

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

FieldMeaning
text, charCount, wordCountThe document as text
pageTextsOne entry per page, when includePageTexts is on — lets you cite page numbers
pageCount, pagesReadTotal pages, and how many were read
likelyScanned, charsPerPageWhether this is images rather than text
spacingLooksBroken, spaceRatioWhether word boundaries survived extraction
title, author, subject, creator, producerDocument metadata
createdAt, modifiedAtNormalised from the PDF date format
tables, tableCount, tableStrategyTables that passed the quality gates
tablesDroppedAsLowQualityHow 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:

DocumentResult
BLS CPI releaseOne genuine table — 5 rows × 4 columns, 95% filled
arXiv paperNo tables, 7 candidates rejected — its tables have no ruling lines and every strategy produced prose in a grid
IRS 1040 formNo 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 text strategy 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

_errorMeaning
not_a_pdfThe body is not a PDF — often an HTML error page
pdf_unreadableA PDF that could not be parsed, with the underlying reason
too_largeAbove the size limit
request_failedNever reached, with the cause

Sitemap Crawler finds a site's PDF URLs; Website Content Extractor does the same job for HTML pages.