Skip to content

Instantly share code, notes, and snippets.

@vedit
Last active May 31, 2023 12:37
Show Gist options
  • Save vedit/ae22318a85140090198053dd3c65fbb8 to your computer and use it in GitHub Desktop.
Save vedit/ae22318a85140090198053dd3c65fbb8 to your computer and use it in GitHub Desktop.
#!/bin/bash
cupsfilter ${1} > ${1}.pdf
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=merged2.pdf ${1}.pdf merged.pdf
mv merged2.pdf merged.pdf
rm ${1}.pdf
#!/bin/bash
find . -type f -exec ./append_pdf.sh '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment