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
This node operation, Extract Attachment From PDF, is designed to extract embedded attachments from a PDF document. It supports multiple input methods for providing the PDF file: as binary data from a previous node, as a base64 encoded string, or via a URL pointing to the PDF file.
Common scenarios where this node is beneficial include:
- Automatically retrieving and processing embedded files within PDFs, such as images, documents, or other resources attached inside a PDF portfolio.
- Extracting attachments for further automation workflows like saving them to cloud storage, analyzing their content, or forwarding them via email.
- Handling invoices, contracts, or reports that contain supplementary files embedded as attachments.
Practical example:
- A user receives a batch of PDFs containing embedded spreadsheets as attachments. This node can extract those spreadsheets automatically so they can be processed or imported into other systems.
Properties
| Name | Meaning |
|---|---|
| Input Data Type | Choose how to provide the PDF file to extract attachments from. Options: • Binary Data (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 that contains the PDF file when using Binary Data input type. Usually "data" for file uploads. |
| Base64 PDF Content | Base64 encoded PDF document content. Required if Input Data Type is set to Base64 String. |
| PDF URL | URL to the PDF file to extract attachments from. Required if Input Data Type is set to URL. |
| Document Name | Name of the document used for processing. Defaults to "document.pdf". |
| Advanced Options | Collection of advanced options. Currently supports: • Custom Profiles: JSON string to adjust custom properties for API calls, allowing extra options specific to certain APIs. See https://dev.pdf4me.com/apiv2/documentation/ |
Output
The output is an array of items where each item contains a json field with the extracted attachment data from the PDF. The structure typically includes metadata about each attachment and the attachment content itself, which may be provided as binary data.
If the node outputs binary data, it represents the actual extracted attachment files from the PDF, ready for further processing or saving.
Dependencies
- Requires access to the PDF processing API service (likely PDF4me API) to perform extraction.
- Needs proper API authentication configured in n8n credentials (an API key or token).
- Internet access if using the URL input method to fetch the PDF file.
Troubleshooting
- Common issues:
- Providing incorrect or inaccessible URLs will cause failures in fetching the PDF.
- Incorrect base64 strings or corrupted binary data will result in errors during extraction.
- Missing or invalid API credentials will prevent successful API calls.
- Error messages:
- Errors related to file not found or inaccessible URL: Verify the URL is correct and publicly accessible.
- Invalid PDF format or corrupted file errors: Ensure the input PDF is valid and not damaged.
- Authentication errors: Check API key/token validity and permissions.
- To resolve, verify inputs, ensure credentials are correctly set up, and confirm network connectivity.