Index
PDF manipulations
invert page order:
pdftk 01.pdf cat end-1 output 01R.pdf
concatenate PDFs:
pdftk 01R.pdf 02.pdf 03.pdf 04.pdf 05.pdf cat output final.pdf
extract range of pages (1-56) (57-80) [split]:
pdftk 03.pdf cat 1-56 output 03a.pdf
pdftk 03.pdf cat 57-80 output 03c.pdf
Insert page:
pdftk A=orig.pdf B=pag.187.pdf cat A1-186 B A187-end output final.pdf
substitute page:
pdftk A=orig.pdf B=pag.246.pdf cat A1-245 B A247-end output final.pdf
rotate 180°:
pdftk 03b_.pdf cat 1-endeast output 03b.pdf
rotate 90°:
pdftk in.pdf rotate 1-endleft output out.pdf
rotate 1st page -90 (vertical to Horizontal) and 2nd page 90 (vertical to Horizontal):
pdftk in.pdf rotate 1south 2-endnorth output out.pdf
rotate only pages from 11 to 13
pdftk in.pdf cat 1-10 11-13east 14-end output out.pdf
rotate only odd pages
pdftk<code> A=MyPdfFile.pdf shuffle AoddWest AevenEast output MyRotatedFile.pdf</code>