Skip to content

Instantly share code, notes, and snippets.

@Riebart
Created June 7, 2021 20:48
Show Gist options
  • Save Riebart/1d0738638f43489dec76ca0ed6b30757 to your computer and use it in GitHub Desktop.
Save Riebart/1d0738638f43489dec76ca0ed6b30757 to your computer and use it in GitHub Desktop.
Squashing a PDF with ghostscript
#!/bin/bash
ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf PDFsam_merge.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment