Skip to content

Instantly share code, notes, and snippets.

@Mahedi-61
Last active November 2, 2020 14:41
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 Mahedi-61/c7de4fda49f2315111b4a7ad22050edf to your computer and use it in GitHub Desktop.
Save Mahedi-61/c7de4fda49f2315111b4a7ad22050edf to your computer and use it in GitHub Desktop.
useful commands of shell script pdftk
# Replacing few page from a pdf file using another pdf file
pdftk A=first.pdf B=second.pdf cat A1 B1 A3-end output out.pdf
# Above code means second page of first.pdf is replaced by the first page of second PDF
# merging multiple files into one file
pdftk file1.pdf file2.pdf cat output mergedfile.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment