Repair a PDF
pdf_repairRepair damaged PDFs in superPDF AI by rebuilding their cross-reference table, saving the fixed copy to a new file, and reporting what was fixed.
Instructions
Rewrite a damaged PDF and rebuild its cross-reference table. Reports what was fixed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| output | Yes | Path for the new PDF, inside an allowed folder. Must not exist yet; superPDF never overwrites files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| fixed | Yes | ||
| pages | Yes | ||
| output | Yes |