Skip to content

Pdf Merge Action: pdfmerge

The pdfmerge action is used to merge multiple PDF files into a single destination PDF file. This functionality is particularly useful for consolidating reports, documents, or other related files into one cohesive file.

Example: You have three PDF files named January.pdf, February.pdf, and March.pdf, and you want to merge them into a single file named Q1_Report.pdf.

Steps to Configure:

  1. Add a new step.
  2. Select Set a Variable Value from the Action dropdown.
  3. Enter a variable name in Element Key (e.g., MergedPDFPath). This variable will store the path to the resulting merged PDF file.
  4. Click on Form, select Functions, and choose PDF Handler Functions.
  5. In the Cmd field, select pdfmerge and provide the following parameters:
    • Destination: Specify the path for the output (merged) PDF file (e.g., C:\Reports\ Q1_Report.pdf).
    • File 1 to File 5: Provide the paths of the PDF files to be merged. You only need to fill in the paths for the files you want to merge (e.g., C:\Reports\ January.pdf, C:\Reports\February.pdf, and C:\Reports\March.pdf).
  6. Click Save.
scrn-pdf-merge-command-tabular-view
Tabular View
pdfmerge Command - Card View
Card View

Outcome on execution:

  • The specified PDF files are merged into the destination file.
  • The resulting file path is stored in the variable defined in the Element Key field. This variable can be referenced in subsequent steps of the automation process using the syntax ${VariableName} (e.g., ${MergedPDFPath}).

Notes:

  • The operation supports merging any number of valid PDF files provided in the File 1 to File 5 fields. Files are merged in the order they are listed.
  • The destination file will be overwritten if a file with the same name already exists at the specified path.

Back To Top