Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Created February 21, 2017 13:49
Show Gist options
  • Save swyngaard/f4083df830de732bbf9a1831748c8dff to your computer and use it in GitHub Desktop.
Save swyngaard/f4083df830de732bbf9a1831748c8dff to your computer and use it in GitHub Desktop.
Join specific pages of multiple PDF files into one PDF using pdftk
Install pdftk:
sudo aptitude install pdftk
Concatenate the 1st page of a.pdf with the 2nd and 3rd pages of b.pdf to produce c.pdf:
pdftk A=a.pdf B=b.pdf cat A1 B2-3 output c.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment