0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

PDF → PDF Merge

AI-generated

Overview

This node operation merges multiple PDF files into a single PDF document. It allows users to specify multiple PDF files either by URL or binary data, and optionally define page ranges for each file to include specific pages in the merge. Users can also choose whether to receive the merged PDF as a URL or as binary data. This operation is useful for combining reports, contracts, or any multi-page documents into one consolidated PDF file for easier sharing or archiving.

Use Case Examples

  1. Merging several PDF reports from different sources into one comprehensive report.
  2. Combining multiple contract pages into a single PDF document for client delivery.

Properties

Name Meaning
Code Variables Allows setting code variables defined in the code editor for the selected function, useful for dynamic input values.
Get File as URL Boolean option to specify whether the merged PDF should be returned as a URL.
Files to Merge Collection of files to be merged, each file can be specified by URL or binary data, with optional page ranges to include specific pages.

Output

JSON

  • url - URL of the merged PDF file if 'Get File as URL' is true.
  • buffer - Binary data of the merged PDF file if 'Get File as URL' is false.

Dependencies

  • Requires an API key credential for the CodeKit API to perform PDF merging operations.

Troubleshooting

  • Ensure that the URLs provided for PDF files are accessible and valid to avoid errors during merging.
  • If specifying page ranges, verify that the start and end pages are within the actual page count of the PDF files.
  • Check that the API key credential is correctly configured and has permissions for PDF operations.
  • Common errors may include invalid file URLs, unsupported file formats, or network issues when fetching files from URLs.

Discussion