Open main menu

Pdftk

Revision as of 12:16, 12 April 2014 by Freephile (talk | contribs) (I love pdfTK)

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)

http://www.pdflabs.com/docs/pdftk-cli-examples/

Discard the cover page of a pdf

pdftk wCover.pdf cat 2-end output NoCover.pdf

Collating two-sided documents

2-sided document? No problem. Scan the original face side up first (odd pages); then flip it over and scan the second (even pages). Astute people will recognized that the second document is in reverse order compared to the first document. pdfTK can not only Merge the two documents, but ALSO can reverse the second document during collation so that the pages are in order.

pdftk A=my.even.pdf B=my.odd.pdf shuffle A Bend-1 output my.full.pdf

In our example, We specify documents handles using 'A' and 'B' to make it easier to refer to them. The operator "shuffle" acts like "cat" but means to collate the documents like shuffling a deck of cards. Using the 'A' and 'B' handles, we can also specify a range, and by reversing the range that 'B' should be read from the "end" to "page 1" using the handle "Bend-1".