Skip to content

Instantly share code, notes, and snippets.

@sampollard
Last active February 17, 2023 05:23
Show Gist options
  • Save sampollard/9ac32dd43d2a037b0e1413aff7a1d908 to your computer and use it in GitHub Desktop.
Save sampollard/9ac32dd43d2a037b0e1413aff7a1d908 to your computer and use it in GitHub Desktop.
Merge pdfs
# 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