Forrest logo
back to the cpdf tool

cpdf:tldr:907b9

cpdf: Select pages 1, 2, 3 and 6 from a source document and write those to a destination document.
$ cpdf ${path-to-source_document-pdf} ${1-3,6} -o ${path-to-destination_document-pdf}
try on your machine

This command uses the cpdf tool to manipulate a PDF document.

Here is the breakdown of the command:

  1. cpdf: This is the command-line tool used for manipulating PDF files.

  2. ${path-to-source_document-pdf}: This is the placeholder for the path to the source PDF file you want to manipulate. You need to replace this with the actual path to your source PDF document.

  3. ${1-3,6}: This is a placeholder for specifying the page range or selection of pages from the source document that you want to include in the output. In this case, it selects pages 1, 2, 3, and 6. You can modify this as per your requirements.

  4. -o: This is an option flag used to indicate the output file or the destination file for the manipulated PDF document.

  5. ${path-to-destination_document-pdf}: This is the placeholder for the path to the destination PDF file where the manipulated document will be saved. You need to replace this with the actual path to your destination PDF document.

Overall, this command takes the specified pages from the source PDF document, performs the desired manipulation using the cpdf tool, and saves the result in the destination PDF document.

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