/// EDIT
1 credit

Repair PDF API

Recovers a damaged PDF through an escalating repair cascade — reports which tier actually fixed it.

/// Quick answer

Repair first tries to open and re-save the PDF (recovering common damage like a broken or missing cross-reference table); a file too damaged for that falls back to a second, more tolerant rewrite pass. The response's repaired_via reports which tier actually fixed it — no_repair_needed, or the tier used — and any file neither tier can open returns a 422 rather than a false claim of success.

Try Repair PDF API — free →Read the docs

Free account. No card required.

How does the Repair PDF API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v2/tools/pdf-repair \
  -H "X-API-Key: ash_live_..." \
  -F "file=@document.pdf"

Common use cases

RELATED TOOLS