Advertisement
Lazza

pdfcompress.sh

Dec 7th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. NAME="$1"
  4.  
  5. BASE=`basename "$NAME"`
  6. gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile="${BASE%.pdf}-compress.pdf" "$NAME"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement