Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
files → Merge PDFs
AI-generatedOverview
The Merge PDFs operation under the files resource allows you to combine multiple PDF files into a single PDF document. This is particularly useful in scenarios where you need to consolidate reports, invoices, or any other documents that are split across several PDF files. For example, you might use this node to merge monthly statements into a quarterly report, or to append signature pages to contracts.
Properties
| Name | Meaning |
|---|---|
| PDF file 1 | The first PDF file to be merged. (Required) |
| PDF file 2 | The second PDF file to be appended to the first. (Required) |
| PDF file 3 | An optional third PDF file to be appended after the second. |
| Binary Property | The name of the binary property where the resulting merged PDF will be stored. (Required; default: data) |
Output
- Binary Data:
The output contains a binary field (with the name specified by "Binary Property") holding the merged PDF file. - json:
Thejsonfield will contain the original input JSON data. If an error occurs and "Continue On Fail" is enabled, thejsonfield will include anerrorkey with details about the failure.
Example Output Structure:
{
"json": { /* original input data */ },
"binary": {
"data": {
"data": "<Buffer ...>", // The merged PDF as a binary buffer
"fileName": "merged.pdf",
"mimeType": "application/pdf"
}
}
}
(The actual binary property name may differ if you set a custom value for "Binary Property".)
Dependencies
- External Service: Requires access to the 1001fx API.
- API Key: You must configure the
1001fxApicredential in n8n. - n8n Configuration: Ensure the node has access to binary data inputs for the PDF files to be merged.
Troubleshooting
Common Issues:
- Missing Binary Data: If the specified PDF files are not present in the binary input, the node will fail.
- Invalid File Format: Only valid PDF files should be provided; otherwise, merging will fail.
- Large Files: Merging very large PDFs may result in timeouts or memory issues.
Error Messages:
"Cannot read property 'fileName' of undefined": Indicates that one of the required PDF files was not found in the binary input. Check your input mapping."Request failed with status code 401": Your API credentials are missing or incorrect."Unexpected token < in JSON at position 0": The response from the API is not valid JSON, possibly due to a server-side error or invalid input.
Resolution Steps:
- Double-check that all required PDF files are attached as binary properties.
- Verify your API credentials in n8n.
- Ensure the "Binary Property" matches the property name you want the output in.