Forrest logo
back to the cpdf tool

cpdf:tldr:f9a04

cpdf: Merge two documents into a new one.
$ cpdf -merge ${path-to-source_document_one-pdf} ${path-to-source_document_two-pdf} -o ${path-to-destination_document-pdf}
try on your machine

The command you provided is using the cpdf tool to merge two PDF documents into one.

Here is the breakdown of the command:

  • cpdf: It is the command-line tool being used to perform operations on PDF files.

  • -merge: This is an option provided to cpdf to specify that we want to merge PDF files.

  • ${path-to-source_document_one-pdf}: This is the placeholder for the path to the first source PDF document. You need to replace it with the actual path to the first PDF file you want to merge.

  • ${path-to-source_document_two-pdf}: Similar to the previous placeholder, this one represents the path to the second source PDF document that you want to merge. Replace it with the actual path.

  • -o: This option is used to specify the output file name or path.

  • ${path-to-destination_document-pdf}: This is the placeholder for the path where you want to save the merged PDF document. You should replace it with the desired path or name for the destination PDF file.

Overall, this command will take two PDF documents, merge them together, and save the result in a new PDF document at the specified destination path. Remember to replace the placeholders with the actual paths and filenames to make the command work correctly.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the cpdf tool