Skip to content

Instantly share code, notes, and snippets.

@bannsec
Created July 21, 2022 03:16
Show Gist options
  • Save bannsec/0daa7943bc8d2c26c2ee2b60a05243d2 to your computer and use it in GitHub Desktop.
Save bannsec/0daa7943bc8d2c26c2ee2b60a05243d2 to your computer and use it in GitHub Desktop.
Merging two pdfs interleafed
Merges every other page, starting page 1 of A, page 1 of B, page 2 of A, page 2 of B, etc.
pdftk A=A.pdf B=B.pdf shuffle A B output merged.pdf
@bannsec
Copy link
Author

bannsec commented Jul 26, 2022

When scanning both sides:

  • gimp first set, export layers as pages, reversed
  • flip packet over and scan backsides
  • gimp second set, export layers as pages but NOT reversed
  • do pdftk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment