Developer API
PDF extraction API
Compare the documented operations, data handling and billing model of each service using a representative document. PennyPDF uses prepaid coins for paid tasks and provides several local browser tools for free. Check providers’ current documentation for their pricing and features.
Current coin packs: Mini: $0.99 for 10 coins; Starter: $2.99 for 50 coins; Saver: $7.99 for 200 coins; Power: $19.99 for 600 coins; Pro: $49.99 for 2,000 coins; Dev: $199 for 10,000 coins. Coins do not expire. Local self-signing, merging, splitting, organizing and redaction are free. Paid tools show their coin cost before you run them.
Current coin packs: Mini: $0.99 for 10 coins; Starter: $2.99 for 50 coins; Saver: $7.99 for 200 coins; Power: $19.99 for 600 coins; Pro: $49.99 for 2,000 coins; Dev: $199 for 10,000 coins. Coins do not expire. Local self-signing, merging, splitting, organizing and redaction are free. Paid tools show their coin cost before you run them.
Copy, paste, ship
Same bearer-token auth across every endpoint. Set PENNYPDF_API_KEY in your environment first.
curl -X POST https://api.pennypdf.com/v1/extract \
-H "Authorization: Bearer $PENNYPDF_API_KEY" \
-F "file=@invoice.pdf" \
-F "format=json" \
-F "include=text,tables,images"import os, requests, json
r = requests.post(
"https://api.pennypdf.com/v1/extract",
headers={"Authorization": f"Bearer {os.environ['PENNYPDF_API_KEY']}"},
files={"file": open("statement.pdf", "rb")},
data={"format": "json", "include": "text,tables"},
)
data = r.json()
for page in data["pages"]:
print(f"Page {page['number']}: {len(page['tables'])} tables")
for tbl in page["tables"]:
# Each table has rows[] of cells[] with .text, .bbox
print([cell["text"] for row in tbl["rows"] for cell in row])How it works
- 1POST the PDF to /v1/extract with the fields you want (text / tables / images).
- 2Parse the returned JSON. Each page is an object with positional blocks and structured elements.
- 3For scanned PDFs: chain /v1/ocr first to add a text layer, then extract normally.
Frequently asked
How accurate is table detection?+
Good on ruled tables (lines between cells) — ~95% cell-boundary accuracy. Mixed on unruled tables (column-aligned text without visible separators) — ~70-80%. For mission-critical table extraction (financial filings, scientific papers), evaluate on your actual docs before committing.
Can I extract just specific page ranges?+
Yes — pass `pages=1-5,10,12-15` in the form data. Coins are still 1 per call regardless of page count.
Latency?+
p50 = 1.4 s for a 20-page invoice, p90 = 3.5 s. Scales roughly linearly with page count. For 500+ page docs, use the async endpoint.
Does it preserve the reading order of multi-column pages?+
We attempt to reconstruct reading order using text block clustering + horizontal/vertical separator detection. On clean two-column academic PDFs, order is correct 95%+ of the time. On complex newspaper-style layouts, you may need to reconstruct order from the positional data yourself.
Rate limits?+
150 requests per minute per API key. Async endpoint bypasses the per-minute cap — use it for bulk extraction runs (1000+ docs/hour).
Can I get raw PDF objects (like pdftotext -layout)?+
Add `format=text-raw` — you get the plain layout-preserved text without the JSON wrapper. Useful for LLM ingestion where structured JSON bloats the context.
Why PennyPDF
- No subscription. Ever.
- Coins never expire — use them in 5 years.
- Client-side processing for 14 of 22 tools.
- No watermarks at any tier.
- Per-operation pricing, shown before you click.
- Same coins for web + public API.