Changes

Jump to navigation Jump to search
1,074 bytes added ,  12:16, 12 April 2014
I love pdfTK
http://www.pdflabs.com/docs/pdftk-cli-examples/

'''Discard the cover page of a pdf'''
<source lang="bash">
pdftk wCover.pdf cat 2-end output NoCover.pdf
</source>

== 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.
<source lang="bash">
pdftk A=my.even.pdf B=my.odd.pdf shuffle A Bend-1 output my.full.pdf
</source>
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".

[[Category:Tools]]
4,558

edits

Navigation menu