Many PDFs that fail to open still have their pages intact; only the index at the end is broken, often by a cut-off download or a tool that wrote bad offsets. Repair reads what is there, rebuilds the structure, checks the page count and returns a clean file with a list of the problems it found.
Questions
What kinds of damage can it fix?
Broken or missing cross-reference tables, wrong object offsets, missing end markers and some bad streams. It cannot bring back pages whose bytes are gone.
How do I know what was fixed?
stats.issues lists up to 20 problems found, and stats.issues_found counts them.
Use cases and what they cost
| Use case | What it does | Calls a month | Estimated cost a month |
|---|---|---|---|
| Upload pipeline | Repairs every PDF that fails to open before it reaches the viewer. | 800 | $4.00 |
| Email ingestion | Fixes truncated attachments from old mail servers. | 3,000 | $13.00 |
| Migration | Cleans a legacy archive before moving it to new storage. | 15,000 | $56.00 |
- Upload pipeline: Only files that fail a quick check.
- Email ingestion: Rebuilds the cross-reference table.
- Migration: Runs once.
Costs use the published volume tiers: the first 1,000 calls of the month at tier 1, calls 1,001 to 10,000 at tier 2, and every call after that at tier 3. Failed calls cost nothing, so they are not in these figures.
Recommendations
- Run repair only on files that fail to open; healthy files gain nothing.
- Repair rebuilds structure. It cannot bring back pages whose bytes are missing from a truncated file.
- Check
statsin the response: it reports what was fixed. - Repair first, then compress or merge; those tools refuse broken input.
How it compares
Few providers sell repair as its own call. Where they do, it is priced like any other conversion, even though most of the time you only need it on the files that break.
| Provider | How they bill | Cost of one job (a 10-page PDF) |
|---|---|---|
| JustAPI | Flat $0.005 per call at tier 1, any size; failures free | $0.005 |
| PDF.co | No repair operation in their credit table | n/a |
| iLoveAPI | 10 credits per file | n/a |
| ConvertAPI | Developer plan: 35 USD a month for 1,000 conversions | $0.04 |
| Adobe PDF Services | Not in their published operation list | n/a |
Prices checked on 12 November 2026 on each provider's public pricing page. PDF.co figures use their Basic plan (8.99 USD a month on annual billing for 16,500 credits). iLoveAPI does not publish dollar prices for paid credits on its pricing page, so only its credit cost is shown. Plans change; check before you decide.
Pick a desktop tool for one-off rescue of a single precious file; an API is for doing it automatically at the point of upload. The full working is in Repair PDF API pricing: who offers it and what it costs, and the step-by-step setup is in the PDF Repair integration guide.
Try it free first
The free pdf repair tool runs the same job in your browser, five times a day, with no account. Use the API for workflows and bigger files. The full parameter list is in the PDF Repair API reference.