apyhub
Back

Repair Damaged PDF File API

What it does

PDF Toolkit helps you compress, split, merge, rotate, reorder, watermark, flatten, repair, redact, number, and fill PDFs through simple file-based endpoints.

Send a PDF and get a transformed PDF back for most operations, or use the form-field endpoint to inspect fillable fields in a PDF form. The service accepts binary PDF uploads, with specific endpoints also taking structured inputs like page ranges, page rotations, form values, checkbox states, page specs, redaction boxes, and watermark settings.

Use PDF Toolkit when you need to prepare documents for distribution, clean up scanned or damaged files, generate completed forms, or remove sensitive content before sharing. For example, you can merge a set of invoices into one file, add page numbers to a report, flatten a filled form so it can no longer be edited, or permanently redact areas on a contract.

The outputs are direct and predictable: several endpoints return a binary PDF, while form-field listing returns a structured object. That makes PDF Toolkit easy to drop into document workflows, back-office automation, and internal admin tools.

POST
Repair a damaged PDF
https://api.eu.apyhub.com/freedailypro/repair-damaged-pdf-file/repair

QUICKSTART

GUIDE

Quickstart

Upload a PDF to repair it and get the fixed file back.

curl -X POST "https://api.eu.apyhub.com/freedailypro/repair-damaged-pdf-file/repair" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/file.pdf"

What you'll get back

Returns a binary file (string with format: binary) containing the repaired PDF.

TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body*
The PDF. Up to 20 MB.

About this endpoint

What it does

Repairs a damaged PDF by accepting a PDF file upload and returning the repaired PDF as binary output.

Request Body

ParameterTypeMandatoryDescription
fileStringYesThe PDF. Up to 20 MB.

Response

Returns a binary file containing the repaired PDF.

ParameterTypeMandatoryDescription
binaryStringYesThe response body is a binary PDF file.

Notes

The uploaded PDF file is limited to 20 MB.

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.