20180528 To rearrange a PDF to take the original pages, fit
them two per page, targetting double sided printing, to create a
booklet that is bound in the middle of each folded
sheet, the command pdfjam and in particular its front-end
pdfbook will be useful.
$ pdfbook input.pdf
$ evince input-book.pdf
Viewing the resulting pdf document we will see the first
page is landscape with two original pages on this single page, upside
down. These are the first and the very last page from that original
document. The very last page will be blank if the number of pages in
the original pdf is not a multiple of 4, as in
Figure 79.2. The second page will be upright
and will be the second page of the original document and the second to
last page of the original document. And so on. When printed all of the
pages will come out the right way up.
A rearranged pdf document for booklet
The pdfbook command will generate some informative output
and in particular will indicate the equivalent pdfjam
command that is effectively run to generate the output:
$ pdfjam --booklet 'true' --landscape --suffix book --signature '4' -- input.pdf -
Copyright © 1995-2018 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of the open
source software Rattle and
Also the author of
Data Mining with Rattle and Essentials
of Data Science.