Last active
February 17, 2023 05:23
-
-
Save sampollard/9ac32dd43d2a037b0e1413aff7a1d908 to your computer and use it in GitHub Desktop.
Merge pdfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: merge out.pdf file1.pdf file2.pdf ... | |
function merge() { | |
out="$1" | |
shift | |
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE="$out" -dBATCH $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment