Skip to content

Instantly share code, notes, and snippets.

@umjammer
Created August 15, 2021 07:21
Show Gist options
  • Select an option

  • Save umjammer/7a0a2bb364941ad0852eeb21d41a9b5e to your computer and use it in GitHub Desktop.

Select an option

Save umjammer/7a0a2bb364941ad0852eeb21d41a9b5e to your computer and use it in GitHub Desktop.
Correct page numbers for scanned pdf command line

Correct page numbers for scanned pdf

$ pdftk A=target.pdf cat Aeven output even.pdf
$ pdftk A=target.pdf cat Aodd output odd.pdf
$ pdftk A=odd.pdf B=even.pdf shuffle A B output out.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment