Actions80
- Add Attachment To PDF
- Add Barcode To PDF
- Add Form Fields To PDF
- Add HTML Header Footer
- Add Image Stamp To PDF
- Add Image Watermark To Image
- Add Margin To PDF
- Add Page Number To PDF
- Add Text Stamp To PDF
- Add Text Watermark To Image
- AI-Invoice Parser
- AI-Process Contract
- AI-Process HealthCard
- Classify Document
- Compress Image
- Compress PDF
- Convert HTML To PDF
- Convert Image Format
- Convert JSON To Excel
- Convert Markdown To PDF
- Convert PDF To Editable PDF Using OCR
- Convert PDF To Excel
- Convert PDF To PowerPoint
- Convert PDF To Word
- Convert To PDF
- Convert URL to PDF
- Convert VISIO
- Convert Word to PDF Form
- Create Images From PDF
- Create PDF/A
- Create Swiss QR Bill
- Crop Image
- Delete Blank Pages From PDF
- Delete Unwanted Pages From PDF
- Split PDF By Barcode
- Disable Tracking Changes In Word
- Enable Tracking Changes In Word
- Extract Attachment From PDF
- Extract Form Data From PDF
- Extract Pages From PDF
- Extract Resources
- Extract Table From PDF
- Extract Text By Expression
- Extract Text From Word
- Fill PDF Form
- Find And Replace Text
- Flip Image
- Flatten PDF
- Generate Barcode
- Generate Document Single
- Generate Documents Multiple
- Get Document From Pdf4me
- Get Image Metadata
- Get PDF Metadata
- Split PDF By Swiss QR
- Get Tracking Changes In Word
- Image Extract Text
- Linearize PDF
- Merge Multiple PDFs
- Overlay PDFs
- Parse Document
- Protect PDF
- Read Barcode From Image
- Read Barcode From PDF
- Read SwissQR Code
- Remove EXIF Tags From Image
- Repair PDF Document
- Replace Text With Image
- Replace Text With Image In Word
- Resize Image
- Rotate Document
- Rotate Image
- Rotate Image By EXIF Data
- Rotate PDF Page
- Sign PDF
- Split PDF By Text
- Split PDF Regular
- Unlock PDF
- Update Hyperlinks Annotation
- Upload File To PDF4me
Overview
The 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. The repaired PDF is then output as binary data with a customizable filename.
This node is beneficial in workflows where PDFs may become corrupted during processing, transmission, or storage, and need to be restored before further use. For example, it can be used in document management systems to automatically repair uploaded PDFs or in automated pipelines that process scanned documents which might have errors.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file to repair: - Binary Data (from previous node) - Base64 String (base64 encoded content) - URL (link to PDF file) |
| Input Binary Field | Name of the binary property containing the PDF file (used if Input Data Type is Binary Data) |
| Base64 PDF Content | Base64 encoded PDF content (used if Input Data Type is Base64 String) |
| PDF URL | URL to the PDF file to repair (used if Input Data Type is URL) |
| Output File Name | Name for the output repaired PDF file (default: "repaired.pdf") |
| Async | Enable asynchronous processing (true/false) |
| Binary Data Output Name | Custom name for the binary data in the node's output (default: "data") |
Output
The node outputs the repaired PDF file as binary data under the specified binary data output name (default "data"). The output includes:
json: Metadata about the operation or the file (structure not detailed in source).binary: Contains the repaired PDF file content, ready for downstream nodes to consume or save.
If asynchronous processing is enabled, the node handles the repair operation without blocking the workflow execution.
Dependencies
- Requires an API key credential or similar authentication token to access the PDF repair service.
- Depends on external PDF repair service endpoints (implied by the imported action module for repairing PDFs).
- No direct environment variables are mentioned, but proper API credentials must be configured in n8n.
Troubleshooting
Common issues:
- Providing incorrect input data type or mismatched input fields (e.g., specifying binary data but no binary property present).
- Invalid or inaccessible URLs when using the URL input method.
- Corrupted or unsupported PDF formats that cannot be repaired.
- Missing or invalid API credentials leading to authorization errors.
Error messages:
- Errors related to missing input data or invalid input format.
- Network or API errors when calling the external repair service.
- Permission or authentication failures due to misconfigured credentials.
Resolutions:
- Verify the input data matches the selected input type.
- Ensure URLs are accessible and point to valid PDF files.
- Confirm API credentials are correctly set up in n8n.
- Check the PDF file integrity before attempting repair.
Links and References
- No explicit links provided in the source code.
- Users should refer to the documentation of the external PDF repair service integrated with this node for detailed API usage and limitations.