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
The "Extract Attachment From PDF" operation in this node allows users to extract embedded attachments from a PDF document. This is useful when you have PDFs that contain other files attached inside them (such as images, documents, or data files) and you want to retrieve those attachments for further processing or analysis.
Common scenarios include:
- Extracting supporting documents embedded within a PDF report.
- Retrieving images or media files attached inside a PDF.
- Automating workflows where attachments need to be extracted and processed separately.
Practical example:
- A user receives a PDF invoice with embedded XML data as an attachment. Using this node, they can extract the XML file automatically and pass it downstream for data extraction or validation.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file to extract attachments from. Options: • Binary Data — Use PDF file from previous node • Base64 String — Provide PDF content as base64 encoded string • URL — Provide URL to PDF file |
| Input Binary Field | Name of the binary property containing the PDF file (usually "data"). Required if Input Data Type is Binary Data. |
| Base64 PDF Content | Base64 encoded PDF document content. Required if Input Data Type is Base64 String. |
| PDF URL | URL to the PDF file to extract attachments from. Required if Input Data Type is URL. |
| Document Name | Name of the document used for processing (default: "document.pdf"). |
| Advanced Options | Collection of advanced options, including: • Custom Profiles — JSON string to adjust custom properties for API calls, e.g., { 'outputDataFormat': 'json' }. Useful for fine-tuning extraction behavior. |
Output
The node outputs JSON data representing the extracted attachments from the PDF. Each extracted attachment typically includes metadata such as filename, MIME type, and the actual content (likely as binary data or base64 encoded).
If the node supports binary output, the extracted attachments will be available as binary data fields, allowing subsequent nodes to process or save these files.
Dependencies
- Requires access to the PDF4me API service for PDF processing.
- An API key credential or equivalent authentication token must be configured in n8n to authorize requests to the PDF4me service.
- Internet connectivity is required if providing the PDF via URL or when calling the external API.
Troubleshooting
Common issues:
- Providing incorrect input data type or missing required fields (e.g., forgetting to specify the binary field name when using binary data).
- Invalid or inaccessible PDF URL leading to download failures.
- Malformed base64 string causing decoding errors.
- API authentication failures due to invalid or missing credentials.
Error messages and resolutions:
- "Invalid input data" — Check that the PDF file is correctly provided according to the selected input data type.
- "Failed to fetch PDF from URL" — Verify the URL is correct, publicly accessible, and not behind authentication.
- "API authentication error" — Ensure the API key or token is properly set up in n8n credentials.
- "No attachments found" — The PDF may not contain any embedded attachments; verify the source PDF.