PDFCraft
Extraction guide

Extract a price list PDF to JSON

Everything below is the response the live API returned for a price list, generated when this page was built. Not a description of what it would return — the output itself, including what it scored low on.

Who this is for

Distributors and marketplaces onboarding a supplier whose catalogue arrives as a PDF once a quarter.

The job, in the words people search for: “import a supplier price list from PDF into a catalogue”.

What makes this shape awkward

Volume-break pricing puts four price columns after the description, and a product with no volume break leaves three of them blank. Long product descriptions also wrap, which is the other thing that ends a table early.

The measured result

Pages read1
Time9 ms (9 ms/page)
Labelled fields found unprompted4
Tables1 (16 rows)
Inputprice-list.pdf (30 KB — synthetic, generated from a spec in the repo; real documents of this type cannot be published)

Fields, with a schema

Ask for the fields you want by the label printed on the page. Each answer carries the text exactly as printed (raw), the value coerced to the type you asked for, a confidence, and a bounding box you can draw on the page to check it.

curl -X POST https://api.pdfcraft.dev/v1/extract \
  -H "Authorization: Bearer $PDFCRAFT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file": "<base64 of your price list>",
    "schema": {
      "supplier": "string",
      "effective_from": "date",
      "currency": "string"
    }
  }'

What came back

Fieldrawvalueconfidence
supplierOrrin Metals"Orrin Metals"60%
effective_from2026-04-01"2026-04-01"70%
currencyEUR"EUR"60%

Every label it found without being asked

Send no schema and you get all of these, keyed by the label as printed. Useful for discovering what a new supplier’s layout actually contains before you write a schema against it.

Supplier, Effective From, Currency, Terms

Tables

Code · Product · 1-9 · 10-49 · 50-199 · 200+ · 16 rows × 6 columns · page 1

Table confidence 100%. Header confidence 100% — the first row was promoted out of the data.

CodeProduct1-910-4950-199200+
OM-3100Angle bracket101.00———
OM-3109Flat bar 20mm137.00126.04116.45106.86
OM-3118Round tube 25mm167.00153.64141.95130.26

First 3 of 16 rows.

With options.rows_as_objects, the same row keyed by its header:

{
  "Code": "OM-3100",
  "Product": "Angle bracket",
  "1-9": "101.00",
  "10-49": "",
  "50-199": "",
  "200+": ""
}

What this does not do

Try it on your own price list

The playground takes a file and shows the same JSON, with every bounding box drawn over the page. No key and no signup for the first few; a free key gives you 100 pages a month.

Related