Created
June 18, 2019 15:19
-
-
Save sepastian/7ea8fa2959bd447392648e284fdc9d34 to your computer and use it in GitHub Desktop.
PDFTK: rotate even/odd pages differently
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# From https://unix.stackexchange.com/a/18631/56290 | |
# Rotate even pages by 180 degrees, don't rotate odd pages. | |
pdftk A=infile.pdf shuffle Aoddnorth Aevensouth output outfile.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I spent hours on this... Thank you! 🙂