PDF to Excel - PDF Form & Scanned Document Data to Rows avatar

PDF to Excel - PDF Form & Scanned Document Data to Rows

Pricing

from $8.00 / 1,000 extracted pages

Go to Apify Store
PDF to Excel - PDF Form & Scanned Document Data to Rows

PDF to Excel - PDF Form & Scanned Document Data to Rows

PDF to Excel for filled PDF forms, scanned receipts and printed reports: one aligned row per document or page with your column names, XLSX and CSV downloads. $0.01 per readable page; failed pages are free.

Pricing

from $8.00 / 1,000 extracted pages

Rating

0.0

(0)

Developer

Yukai Lin

Yukai Lin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Features

Limited permissions

Share

PDF to Excel — form data extraction into aligned rows

Turn filled PDF forms, scanned receipts, and printed reports into a spreadsheet. Each public PDF/JPG/PNG URL becomes one Dataset row by default. Download the same rows as XLSX or CSV. Choose oneRowPer: "page" to get one row for each readable PDF page.

Input

{"sources":["https://filedone.ai/sample-files/sample-invoice.pdf"],"fields":["invoice_number","total"],"oneRowPer":"document"}
  • sources: up to 500 direct public PDF, JPG, or PNG URLs. A repeated or invalid URL yields a free error row.
  • datasetId and optional datasetField: read source URLs from an Apify Dataset. You can combine these with sources.
  • fields: optional array of 1–50 exact column names. Every row uses these columns, with null for a missing value. Leave empty to let AI infer one shared set of columns from the first readable document. Output metadata names such as pageNumber and chargedPages are reserved.
  • templateHeader (instead of fields): paste your spreadsheet's header row, copied from Excel or Google Sheets (tab-separated), a CSV header line (comma or semicolon; quote names that contain commas), or one column name per line. Up to 50 columns; blank header cells are skipped, repeated names are an input error. The output uses these names exactly, in the same order, and in XLSX/CSV they come first, so the file lines up with your template; the check columns follow.
  • templateUrl (instead of templateHeader): a public CSV or XLSX file, or a Google Sheets link shared as "Anyone with the link". Only the header row is read (for XLSX: the first row with two or more filled cells on the first sheet, so a title row above it is skipped). Old .xls files and sign-in pages are input errors, and the run stops before reading any document, free.
  • oneRowPer: document (default) or page.
  • maxPdfPages: first 1–50 pages per PDF (default 20). Only readable pages are sent to extraction.

Output

The Dataset and files use the same fixed columns: sourceUrl, pages, pageNumber, the requested or inferred fields, confidence, missingFields, missingReasons, success, charged, chargedPages, errorType, error. With a template, XLSX/CSV start with the template's columns, then sourceUrl, pages, pageNumber and the rest. pageNumber identifies the original page in page mode and is blank in document mode. pages counts readable pages used for a row. confidence is the fraction of requested fields filled, not a probability of correctness. missingFields lists blank columns. missingReasons says why each blank column is blank (Dataset: an object {column: reason}; XLSX/CSV: column: reason; …):

ReasonMeaning
not_foundThe value is not in the document.
unclearAI saw the field but could not read it reliably (illegible or ambiguous). Check the original.
not_found_in_read_pagesNot found in the pages that were read; the document has more pages than maxPdfPages or than fit in one extraction.
document_not_readThe file could not be read (invalid URL, download failure, no text).
extraction_failedThe AI extraction call failed for this row.

SUMMARY contains xlsxUrl, csvUrl, fields, fieldsFrom (fields, templateHeader, templateUrl or inferred), row counts, charged page count, and billingRows with the final status of each input row. Files are stored as RESULTS.xlsx and RESULTS.csv in the run's key-value store.

The Dataset must save a row before its charge is attempted, so its charged and chargedPages values are null for an extracted row. Read the final values in XLSX/CSV or SUMMARY.billingRows. Rows that failed extraction show false and 0 in the Dataset too.

A readable page that produces a saved extracted row uses one existing page-extracted event (Free/BRONZE: $0.01/page; plan discounts appear in Pricing). Blank pages, unreadable files, invalid URLs, and rows with no requested values are free. Multiple readable pages in one document row cost one event each. There is no start fee or XLSX/CSV event.

FAQ

Does the AI always read the form correctly? No. OCR and AI can misread handwriting, small print, totals, or unusual layouts. Spot-check the extracted values against the original documents, especially before accounting or compliance use.

Can it fill my own Excel template? Yes: paste the template's header row into templateHeader (or link the file in templateUrl). Columns keep your exact names and order, and AI matches differently labelled values (for example "Ref #" on the form for a "Reference Number" column). A format written in a header, such as Date (YYYY-MM-DD), is followed where possible.

Can it align several form layouts? Yes, when you give fields or a template. Automatic columns are inferred once from the first readable document, so mixed layouts may leave more blank fields.

Can it open private documents? The URLs must be publicly accessible to the backend. Password-protected or unavailable files return free error rows. Avoid sending documents you lack permission to process.

What about filled interactive PDF fields? The answers must appear in the PDF's rendered page or text layer. If a viewer saved answers only as form annotations, flatten or print the filled form to PDF first.

How are blanks represented? Missing values are null in Dataset and empty cells in XLSX/CSV, with the reason in missingReasons. A document with no requested values is a free failure row.

Does a page always become a row? In page mode, each readable page becomes a row. Completely blank pages have no extraction charge.

What does it do?

This Actor reads public PDF forms, scanned receipts, and printed reports and writes aligned spreadsheet rows.

How to use

Paste direct document URLs into sources (or spreadsheet rows in the form name<Tab>URL or name, URL), optionally supply fields or paste your template's header row, then run. Commas inside a URL path or query string are preserved. Open SUMMARY for the XLSX and CSV links.

Pricing

A successful row uses the existing page-extracted event once per readable page. Free and BRONZE: $0.01 per page. No start fee. Failed rows are free.

Limitations

Only public direct PDF/JPG/PNG URLs are accepted. The first 50 pages of each PDF can be read. AI and OCR may be incomplete.

Use with AI agents (MCP)

Connect Apify's MCP server at https://mcp.apify.com?tools=tidytools/pdf-form-to-excel. Ask for rows from public document URLs; failed items have an errorType and are free.