Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to rotate pages of PDF file

📅 2013-Sep-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ pdf, pdf90, rotate ⬩ 📚 Archive

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 texlive-extra-utils package:

$ sudo apt-get install texlive-extra-utils

Then call 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, foobar.pdf becomes foobar-rotated90.pdf.

Tried with: Ubuntu 14.04