pdf_repair
Attempts to repair corrupted or malformed PDF files by parsing with leniency, recovering pages, and re-saving to a clean document.
Instructions
Attempt to repair a damaged or malformed PDF by loading it with lenient parsing, copying all recoverable pages to a clean document, and re-saving. May fix issues like corrupted cross-reference tables or orphaned objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the damaged PDF | |
| outputPath | Yes | Path for the repaired PDF |