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
- 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
- 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 Barcode
- Split PDF By Swiss QR
- 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. This is useful when PDFs are not opening correctly, have structural issues, or contain errors that prevent normal usage. The node supports multiple input methods for the PDF file: binary data from a previous node, a base64 encoded string, or a URL pointing to the PDF.
Common scenarios include:
- Automatically repairing PDFs received from external sources before further processing.
- Fixing PDFs generated by other systems that may be partially corrupted.
- Preparing PDFs for archival or distribution by ensuring they are structurally sound.
Example use case:
- A workflow downloads a PDF report from a URL, repairs it if corrupted, and then sends the repaired version via email or stores it in cloud storage.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file to repair. Options: Binary Data (from previous node), Base64 String, URL to PDF file. |
| Input Binary Field | Name of the binary property containing the PDF file (used only if Input Data Type is Binary Data). |
| Base64 PDF Content | Base64 encoded content of the PDF file (used only if Input Data Type is Base64 String). |
| PDF URL | URL to the PDF file to repair (used only if Input Data Type is URL). |
| Output File Name | Name for the output repaired PDF file. Default is "repaired.pdf". |
| Async | Enable asynchronous processing (boolean). |
| Binary Data Output Name | Custom name for the binary data field in the node's output. Default is "data". |
Output
The node outputs the repaired PDF file as binary data under the specified binary data output name (default "data"). The JSON output contains metadata about the processed item, but the main content is the repaired PDF binary data ready for downstream nodes.
If asynchronous processing is enabled, the node handles the repair operation without blocking, suitable for large files or slow operations.
Dependencies
- Requires an API key credential for the PDF repair service (generic API authentication token).
- Needs network access if using URL input type.
- No additional environment variables are explicitly required beyond standard n8n credentials setup.
Troubleshooting
Common Issues:
- Providing incorrect binary property name when using binary input will cause the node to fail to find the PDF file.
- Invalid base64 string input can lead to decoding errors.
- URL input must point to a valid accessible PDF file; otherwise, download or repair will fail.
- Large PDF files might require asynchronous mode to avoid timeouts.
Error Messages:
- Errors related to missing or invalid input data typically indicate misconfiguration of input properties.
- Network errors when using URL input suggest connectivity or permission issues.
- API authentication errors mean the provided API key credential is invalid or missing.
Resolutions:
- Double-check the input data type and corresponding fields.
- Validate base64 strings with external tools before use.
- Ensure URLs are publicly accessible or properly authenticated.
- Enable asynchronous processing for large files.