repair_pdf
Repair damaged or malformed PDF files that fail to open. Fixes scanned PDFs to ensure proper rendering and accessibility.
Instructions
Attempt to repair a damaged or malformed PDF. Useful for scanned PDFs that fail to open or render correctly in some readers. Produces a .pdf file on disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_file | Yes | Path to the damaged PDF file to repair. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |