prokodo (PDF Toolkit) icon

prokodo (PDF Toolkit)

Merge, split, convert to images, OCR for PDFs

Merge PDFs

AI-generated

Summary

Merge multiple PDF documents from incoming binary items into a single PDF file.

Inputs

  • Binary Property (Input) — Name of the binary property on incoming items containing the PDF files to merge (default is 'data').
  • Output Property (Merged PDF) — Name of the binary property to which the merged PDF file will be assigned in the output (default is 'data').
  • Output File Name — File name to assign to the merged PDF output (default is 'merged.pdf').

Output shape

A single item containing one binary file with the merged PDF under the specified output binary property.

If no valid PDF binaries are found in the input items, the node throws an error unless the workflow is set to continue on failure. The merged PDF is returned as a binary buffer suitable for further processing or saving.

Examples

Example 1: Merging multiple PDFs from workflow inputs

Set 'Binary Property (Input)' to the incoming binary key containing PDFs (default 'data'), specify an output binary property (default 'data'), and provide a file name for the merged PDF (e.g., 'merged.pdf'). The node will combine all PDF pages from each input item into a single PDF output.

Discussion