Forrest logo
back to the qpdf tool

qpdf:tldr:4a27d

qpdf: Rotate certain pages of a PDF with a given angle.
$ qpdf --rotate=${90:2,4,6} --rotate=${180:7-8} ${input-pdf} ${output-pdf}
try on your machine

The command you provided is a Unix command that utilizes the qpdf tool.

Here is its breakdown:

qpdf --rotate=${90:2,4,6} --rotate=${180:7-8} ${input-pdf} ${output-pdf}
  • qpdf: It is the command to execute the qpdf tool.

  • --rotate=${90:2,4,6}: This flag instructs qpdf to rotate the input PDF file by 90 degrees. The values within braces {} are parameters that specify which pages to rotate. In this case, 2,4,6 means pages 2, 4, and 6 will be rotated.

  • --rotate=${180:7-8}: This flag tells qpdf to rotate the PDF file by 180 degrees. Again, the values within braces {} determine the pages to rotate. In this instance, 7-8 means pages 7 and 8 will be rotated.

  • ${input-pdf}: This is a placeholder representing the path or filename of the input PDF file. You need to replace it with the actual path or filename you wish to process.

  • ${output-pdf}: Similar to ${input-pdf}, this is also a placeholder indicating the path or filename for the resulting output PDF file. You need to specify the desired path and name as per your requirements.

Once you provide the appropriate input PDF and output PDF, along with the desired page numbers for rotation, the qpdf tool will execute and process the command accordingly.

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 qpdf tool