Skip to content

Instantly share code, notes, and snippets.

@daerich
Last active January 14, 2021 12:47
Show Gist options
  • Save daerich/768389758d97ec7ca706abe3de489b2d to your computer and use it in GitHub Desktop.
Save daerich/768389758d97ec7ca706abe3de489b2d to your computer and use it in GitHub Desktop.
Useful pdf concat using ghostscript
#!/bin/bash
#from https://stackoverflow.com/questions/48136770/merge-pdf-files-by-string-in-filename-using-ubuntu-terminal
#append '-q' switch to silence gs
gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=out.pdf input*.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment