pdftk – Merge two PDF files containing even and odd pages of a book – Super User

pdftk – Merge two PDF files containing even and odd pages of a book – Super User

A simple solution would be to use only pdftk in the following way:

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

PDFtk has a special feature that we added specifically to solve this problem of arranging scanned pages: shuffle. Say you have two PDFs: even.pdf and odd.pdf. Then you can collate them into a single document like this:

pdftk A=odd.pdf B=even.pdf shuffle A B output collated_pages.pdf

If your even pages are in reverse order, you can reverse its page range:

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

The shuffle feature works by taking one page at a time from each of the input page ranges and assembling them into a new PDF. You specify these ranges after the shuffle keyword, and you can have more than two ranges.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.