Rotate PDF

  • Permanently rotate 1 page PDF document 90 degrees clockwise:

pdftk infile.pdf cat 1E output outfile.pdf

  • Permanently rotate 1 page PDF document 90 degrees counterclockwise:

pdftk infile.pdf cat 1W output outfile.pdf

  • rotate all files in directory by 180 and save them to subdirectory “rotated” with a new name.

mkdir rotated; for i in *.pdf; do echo $i; newname=”rotated/r_$i”; echo $newname; pdftk $i cat 1-endsouth output $newname; done

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s