Just use PDFtk.
For rotating clockwise:
pdftk input.pdf cat 1-endeast output output.pdf
For rotating anti-clockwise:
pdftk input.pdf cat 1-endwest output output.pdf
Regarding the installation of PDFtk on Fedora, I found these links:
- Pdftk substitute for Fedora 21 and 22
- Pdftk not available?
- Install pdftk on Fedora using the Snap Store
I just stumbled upon this thread and saw that there is no good solution mentioned yet. I found that (at least on Debian and Ubuntu) pdfjam comes with the following commands:
pdf90 input.pdf pdf180 input.pdf pdf270 input.pdf
I think that is the easiest and fastest approach. These are scripts using the pdfjam command properly. Btw. the pdfjam is a virtual package that comes with
The above commands were dropped from
pdfjam since version 3.02, and are now available (but unmaintained) in the package
pdfjam-extras. The direct commands that work with
pdfjam (as mentioned in the comments) are respectively:
pdfjam --landscape --angle 90 input.pdf pdfjam --angle 180 input.pdf pdfjam --landscape --angle 270 input.pdf
In Linux Mint 18.3 (I believe in other Debian derived distributions as well) you have a simple command line tool named
You can use:
qpdf in.pdf out.pdf --rotate=[+|-]angle[:page-range].
From the documentation:
Apply rotation to specified pages. The page-range portion of the option value has the same format as page ranges in Section 3.5, “Page Selection Options”. If the page range is omitted, the rotation is applied to all pages. The angle portion of the parameter may be either 90, 180, or 270. If preceded by + or -, the angle is added to or subtracted from the specified pages’ original rotations. Otherwise the pages’ rotations are set to the exact value. For example, the command
qpdf in.pdf out.pdf --rotate=+90:2,4,6 --rotate=180:7-8would rotate pages 2, 4, and 6 90 degrees clockwise from their original rotation and force the rotation of pages 7 through 9 to 180 degrees regardless of their original rotation, and the command
qpdf in.pdf out.pdf --rotate=180would rotate all pages by 180 degrees.