Skip to content

Instantly share code, notes, and snippets.

@Mebus
Created July 28, 2017 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mebus/0d80bddf568aef6cfc15aa08dbaf0420 to your computer and use it in GitHub Desktop.
Save Mebus/0d80bddf568aef6cfc15aa08dbaf0420 to your computer and use it in GitHub Desktop.
PDFMagic
#!/bin/bash
pdftk A=PDFsam_merge-step1-step2.pdf cat Aodd output odd.pdf
pdftk A=PDFsam_merge-step1-step2.pdf cat Aeven output even.pdf
pdfcrop --margins "100 0 0 0" --clip odd.pdf
pdfcrop --margins "0 0 100 0" --clip even.pdf
pdftk A=odd-crop.pdf B=even-crop.pdf shuffle A B output druckmich.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment