Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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