Skip to content

Instantly share code, notes, and snippets.

@caugner
Created February 16, 2015 17:22
Show Gist options
  • Save caugner/589cac8dbb07b26b34ff to your computer and use it in GitHub Desktop.
Save caugner/589cac8dbb07b26b34ff to your computer and use it in GitHub Desktop.
pdfnup-2x4
# Take slides pdf and convert them to a nice 2x4 overview.
#
# Usage: pdfnup-2x4 FILE [PAGES]
# pdfnup-2x4 slides.pdf | all pages
# pdfnup-2x4 slides.pdf '1-8' | only pages 1 to 8
#
# Configuration:
# --nup 2x4 | 2x4 input pages per output page (i.e. 2 columns with 4 pages each)
# --column true | top to bottom, left to right
# --paper a4paper | force A4
# --no-landscape | force portrait
# --scale 0.95 | resize for space
# --delta "0.5cm 0.5cm" | 0.5cm space between input pages
# --frame true | border around each input page
#
# Tip: Save as /usr/bin/pdfnup-2x4 in order to use everywhere.
pdfnup $1 $2 \
--suffix 2x4 \
--nup 2x4 \
--column true \
--paper a4paper \
--no-landscape \
--scale 0.95 \
--delta "0.5cm 0.5cm" \
--frame true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment