How to Rotate a PDF on Linux Without the Command Line
- Browser tool works on any Linux distro with a web browser
- No package to install, no command line required
- Command-line alternatives: qpdf, pdftk, cpdf for scripting
- Files processed locally in your browser, never uploaded
Table of Contents
Linux PDF viewers like Evince and Okular can rotate pages on screen but do not always save the rotation to the file. You can fix this with command-line tools like qpdf or pdftk, or skip the terminal entirely with a browser-based tool that works on any distro.
If you just need to rotate a file quickly: open Firefox or Chrome on your Linux machine, go to the Rotate PDF tool, and you are done in 15 seconds. If you need to script rotation across hundreds of files, the command-line options below are more appropriate.
Method 1: Browser Tool — Zero Installation
Open Firefox, Chromium, or Chrome. Navigate to the Rotate PDF tool. Drop your file. Rotate all pages or click individual thumbnails. Download.
This works identically on Ubuntu, Fedora, Arch, Mint, Debian, openSUSE, Pop!_OS, Manjaro — any distribution with a modern browser. No packages to install, no dependencies to resolve, no snap/flatpak/apt/pacman required.
The rotation happens in the browser using a client-side processing engine. Your file never touches a server. This matters for privacy-conscious Linux users who chose the OS specifically to control where their data goes.
Method 2: qpdf (Best Command-Line Option)
qpdf is the cleanest command-line PDF manipulator for rotation. Install it:
sudo apt install qpdf # Debian/Ubuntu sudo dnf install qpdf # Fedora sudo pacman -S qpdf # Arch
Rotate all pages 90 degrees clockwise:
qpdf --rotate=+90 input.pdf output.pdf
Rotate specific pages:
qpdf --rotate=+90:1,3,5 input.pdf output.pdf # pages 1, 3, 5 qpdf --rotate=+180:2-10 input.pdf output.pdf # pages 2 through 10
qpdf is fast, lightweight, and handles edge cases well. Recommended for batch scripting.
Sell Custom Apparel — We Handle Printing & Free ShippingMethod 3: pdftk (Older but Widely Available)
pdftk has been the standard Linux PDF toolkit for years. Install it:
sudo apt install pdftk-java # Debian/Ubuntu sudo dnf install pdftk # Fedora
Rotate all pages 90 degrees clockwise:
pdftk input.pdf cat 1-endeast output output.pdf
Rotation directions: east = 90 CW, south = 180, west = 270 CW (90 CCW). Per-page rotation:
pdftk input.pdf cat 1east 2-end output output.pdf # only page 1
pdftk is reliable but the syntax is less intuitive than qpdf.
Why Evince and Okular Don't Save Rotation
Evince (GNOME): Has a rotate option under View > Rotate. This is a view transform that does not modify the file. Close and reopen — original orientation is back.
Okular (KDE): Similar behavior. Rotate Left/Right changes the display but does not save permanently. Okular has annotation saving, but page rotation is not included in what it persists.
Xpdf: No rotation feature at all in the viewer.
None of the standard Linux PDF viewers treat rotation as an edit operation. They all treat it as a view preference. This is a deliberate design choice (viewers view, editors edit), but it catches people off guard when they expect the "rotation" to stick.
Rotate PDFs on Any Linux Distro
Works in Firefox and Chrome. No packages, no dependencies, no root access needed.
Open Free Rotate PDF ToolFrequently Asked Questions
What is the fastest way to rotate a PDF on Linux?
Open the browser tool in Firefox or Chrome. No installation, no terminal. For scripting, use qpdf with --rotate flag.
Does the browser tool work on Wayland?
Yes. The tool runs in the browser, which works under both X11 and Wayland compositors. No display-server-specific dependencies.
Can I rotate PDFs in a bash script?
Yes. Use qpdf: qpdf --rotate=+90 input.pdf output.pdf. Or pdftk: pdftk input.pdf cat 1-endeast output output.pdf. Both are scriptable and support batch processing.
Will Evince save my rotation?
No. Evince rotates the display view only. The PDF file is not modified. Use a browser tool or command-line tool for permanent rotation.

