Advertisement
opexxx

shrinPDF.sh

Nov 10th, 2013
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. gs  -q -dNOPAUSE -dBATCH -dSAFER \
  4.     -sDEVICE=pdfwrite \
  5.     -dCompatibilityLevel=1.3 \
  6.     -dPDFSETTINGS=/screen \
  7.     -dEmbedAllFonts=true \
  8.     -dSubsetFonts=true \
  9.     -dColorImageDownsampleType=/Bicubic \
  10.     -dColorImageResolution=72 \
  11.     -dGrayImageDownsampleType=/Bicubic \
  12.     -dGrayImageResolution=72 \
  13.     -dMonoImageDownsampleType=/Bicubic \
  14.     -dMonoImageResolution=72 \
  15.     -sOutputFile=out.pdf \
  16.      $1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement