Create a booklet or a multipage PDF from a single page one
mouse 1037 · person cloud · link
Last update
2022-09-14
2022
09-14
« — »
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# install pdftk, pdfjam & scripts
apt install pdftk texlive-extra-utils

# --- input is an A4 portrait PDF ---
pdfjam --a4paper --scale 0.95 --suffix nup --nup 2x1 --landscape in.pdf  # multipage
pdfjam --landscape --suffix book --signature 4 --a4paper in.pdf  # booklet

# --- input is an A4 landscape PDF ---
# multipage
pdfjam --a4paper --scale 0.95 --suffix nup --nup 1x2 --no-landscape in.pdf
# simple booklet
pdfjam --landscape --suffix book --signature 4 --a4paper in.pdf
# better booklet (minimize blank space)
# or: pdftk in.pdf cat 1-endwest output in-rotated90.pdf
pdfjam --suffix rotated90 --angle 90 --fitpaper true --rotateoversize true in.pdf
pdfjam --landscape --suffix book --signature 4 --a4paper in-rotated90.pdf

In case of need you can create a blank page via convert xc:none -page A4 blank.pdf.

1
2
3
4
5
6
7
8
9
10
11
# UNMAINTAINED OLD COMMANDS
# --- input is an A4 portrait PDF ---
pdfnup --a4paper --scale 0.95 --nup 2x1 in.pdf  # multipage
pdfbook --a4paper --short-edge          in.pdf  # booklet

# --- input is an A4 landscape PDF ---
pdfnup  --a4paper --scale 0.95 --nup 1x2 --no-landscape in.pdf  # multipage
pdfbook --a4paper --short-edge in.pdf  # simple booklet
# better booklet (minimize blank space)
pdf90 in.pdf # or pdftk in.pdf cat 1-endwest output in-rotated90.pdf
pdfbook --a4paper --short-edge in-rotated90.pdf

Source: pdfjam-extras, pdfnup, pdfbook