Skip to content

Instantly share code, notes, and snippets.

@malwaremily
Last active April 17, 2020 19:19
Show Gist options
  • Save malwaremily/933c4e792b304dd69113c4c5642b25ce to your computer and use it in GitHub Desktop.
Save malwaremily/933c4e792b304dd69113c4c5642b25ce to your computer and use it in GitHub Desktop.
rotate PDF from terminal
#!/bin/bash
pdftk $1.pdf cat 1south output a.pdf; mv a.pdf $1.pdf
@malwaremily
Copy link
Author

malwaremily commented Apr 17, 2020

Example:
To rotate a PDF with filename "april.pdf"
./flip.sh april

To rotate a PDF with filename "1.pdf"
./flip.sh 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment