Rotate a specific page of a pdf file?

NOTE: This solution only works for Ubuntu versions up through 17.10. Ubuntu 18.04 and later do not have the pdftk package due to the packages being removed due to the dependencies to run the package being removed from the Archive for Bionic and later.

NOTE2: even if officially removed from 18.04, there is a snap version of pdftk; you can install it with snap install pdftk.

You can use pdftk. Install it with sudo apt-get install pdftk. Then, suppose you want to rotate the page 4 of your document test.pdf 90 degree clockwise:

pdftk test.pdf cat 1-3 4east 5-end output out.pdf 

You can do much more in pdftk, changing page order, rotation, merging various PDF files. The manual page is your friend here.

From man pdftk, referring to the cat operation:

<input PDF handle>[<begin page number>[-<end page num‐ ber>[<qualifier>]]][<page rotation>]

             Where the handle identifies one of the input PDF files, and
             the beginning and ending page numbers are one-based refer‐
             ences to pages in the PDF file.  The qualifier can be even or
             odd, and the page rotation can be north, south, east, west,
             left, right, or down.

You can also use pdfshuffler, which has a GUI interface. You can download it from http://sourceforge.net/projects/pdfshuffler/ or using ubuntu software centre or synaptic package manager.

It allows to do exactly what you want, you can graphically choose which pages to rotate, if more than one page is wanted. You can also do cropping and reordering of the pages.


The Master PDF Editor is also capable of rotating single Pages. Also in the Free Version (Speaking for version 4.3.80)

Tags:

Pdf