Sometimes, the pages in a PDF file might be rotated wrongly. For example, this can happen as the result of automatic scanning of documents.
To rotate the pages of a PDF file, the
pdf90 tool can be used.
First, install the
$ sudo apt-get install texlive-extra-utils
pdf90 to rotate the pages of a PDF file by 90 degrees in counterclockwise direction:
$ pdf90 foobar.pdf
The output is written to a file with suffix of
-rotated90. For example,
Tried with: Ubuntu 14.04