Actions80
- Extract Text From Word
- Find And Replace Text
- Convert PDF To Editable PDF Using OCR
- Create Swiss QR Bill
- Split PDF By Barcode
- Split PDF By Swiss QR
- Split PDF By Text
- Split PDF Regular
- Create PDF/A
- Convert HTML To PDF
- Convert Markdown To PDF
- Upload File To PDF4me
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Fill PDF Form
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- AI-Invoice Parser
- AI-Process HealthCard
- AI-Process Contract
- Generate Barcode
- Classify Document
- Parse Document
- Linearize PDF
- Flatten PDF
- Convert To PDF
- Json To Excel
- Convert PDF To Excel
- Convert PDF To Word
- Convert PDF To PowerPoint
- Convert VISIO
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Extract Pages
- Merge Multiple PDFs
- Overlay PDFs
- Rotate Document
- Rotate Page
- Sign PDF
- URL to PDF
- Add Image Watermark To Image
- Add Text Watermark To Image
- Compress Image
- Convert Image Format
- Create Images From PDF
- Flip Image
- Get Image Metadata
- Image Extract Text
- Remove EXIF Tags From Image
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Image
- Rotate Image By EXIF Data
- Compress PDF
- Get PDF Metadata
- Repair PDF Document
- Get Document From Pdf4me
- Update Hyperlinks Annotation
- Protect Document
- Unlock PDF
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Generate Document Single
- Generate Documents Multiple
- Get Tracking Changes In Word
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Attachment From PDF
- Extract Text By Expression
- Extract Table From PDF
- Extract Resources
Overview
This node provides a "Repair PDF Document" operation that allows users to fix corrupted or damaged PDF files. It supports multiple input methods for the PDF file, including binary data from a previous node, a base64 encoded string, or a URL pointing to the PDF file. The node processes the input PDF and outputs a repaired version of the document.
Common scenarios where this node is beneficial include:
- Automatically fixing PDFs that fail to open or display correctly due to corruption.
- Repairing PDFs received from external sources before further processing or archiving.
- Integrating into workflows that require guaranteed valid PDF files for downstream automation.
Practical example:
- A user receives PDF invoices via email attachments that sometimes get corrupted during transmission. This node can be used to repair those PDFs automatically before extracting invoice data.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file to repair. Options: Binary Data, Base64 String, URL |
| Input Binary Field | (When using Binary Data) Name of the binary property containing the PDF file |
| Base64 PDF Content | (When using Base64 String) Base64 encoded content of the PDF file |
| PDF URL | (When using URL) URL pointing to the PDF file to repair |
| Output File Name | Desired filename for the output repaired PDF file (default: "repaired.pdf") |
| Async | Enable asynchronous processing (true/false) |
Output
The node outputs JSON data representing the repaired PDF file. The output includes the repaired PDF content, typically as binary data under a specified binary property, allowing subsequent nodes to use or save the fixed PDF file.
If the node supports binary output, it will contain the repaired PDF file's binary data, which can be saved or passed along in the workflow.
Dependencies
- Requires an API key credential for the PDF repair service (configured in n8n credentials).
- Internet access if providing the PDF via URL or if the repair service is cloud-based.
- No additional environment variables are explicitly required beyond standard n8n setup.
Troubleshooting
Common issues:
- Providing an invalid or inaccessible URL may cause failures.
- Incorrect base64 encoding or corrupted binary input will prevent successful repair.
- Missing or incorrect API authentication will result in authorization errors.
Error messages:
- Errors related to input data format usually indicate mismatched input type and provided data.
- Network or API errors suggest connectivity or credential problems.
Resolutions:
- Verify the input data matches the selected input type.
- Ensure URLs are accessible and correct.
- Confirm API credentials are properly configured and valid.
- Enable "Continue on Fail" in the node settings to handle individual item errors gracefully.