PDFCraft
Extraction guide

Extract a rent roll PDF to JSON

Everything below is the response the live API returned for a rent roll, 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

Property-management software and real-estate underwriters reviewing a portfolio at acquisition.

The job, in the words people search for: “get a rent roll out of a PDF and into a spreadsheet”.

What makes this shape awkward

Wide table, many columns, several of them currency. Ordinal column assignment matters here: right-aligned money columns have wildly different left edges, so clustering by left edge loses exactly the columns anyone cares about.

The measured result

Pages read1
Time13 ms (13 ms/page)
Labelled fields found unprompted4
Tables1 (24 rows)
Inputrent-roll.pdf (29 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 rent roll>",
    "schema": {
      "property": "string",
      "as_at": "date",
      "occupancy": "string"
    }
  }'

What came back

Fieldrawvalueconfidence
propertyKestrel House"Kestrel House"60%
as_at2026-03-31"2026-03-31"70%
occupancy91.7%"91.7%"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.

Property, As At, Units, Occupancy

Tables

Unit · Tenant · Lease start · Lease end · Monthly rent · Deposit · Arrears · 24 rows × 7 columns · page 1

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

UnitTenantLease startLease endMonthly rentDepositArrears
101A. Pike2024-01-012026-01-011,434.002,151.00—
102N. Haddad2025-02-012027-02-011,762.002,643.00—
103I. Duarte2024-03-012026-03-01929.001,393.50—

First 3 of 24 rows.

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

{
  "Unit": "101",
  "Tenant": "A. Pike",
  "Lease start": "2024-01-01",
  "Lease end": "2026-01-01",
  "Monthly rent": "1,434.00",
  "Deposit": "2,151.00",
  "Arrears": ""
}

What this does not do

Try it on your own rent roll

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