Skip to content

Instantly share code, notes, and snippets.

@iphils
Created May 2, 2025 15:57
Show Gist options
  • Save iphils/9564356baaaaae2f5a599e9c540c7451 to your computer and use it in GitHub Desktop.
Save iphils/9564356baaaaae2f5a599e9c540c7451 to your computer and use it in GitHub Desktop.
use pdfjam to create a pocketmod from pdf of 8 pages. Coverpage will be page 1 and 8.
pdfjam --no-tidy --quiet --checkfiles --vanilla -o /dev/stdout "philips-pocketmod.pdf" "1-8" | pdfjam --angle 180 --no-tidy --quiet --vanilla -o /dev/stdout /dev/stdin '1,8,7,6' | pdfjam --nup 4x2 --landscape --frame true "philips-pocketmod.pdf" '2-5' /dev/stdin "$@" --outfile phil-pock.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment