Skip to content

Instantly share code, notes, and snippets.

@roktas
Created November 3, 2010 11:50
Show Gist options
  • Save roktas/660999 to your computer and use it in GitHub Desktop.
Save roktas/660999 to your computer and use it in GitHub Desktop.
fitpdf
#!/bin/sh
for f; do
[ -f $f ] || continue
gs -sOutputFile=$f.new \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 $f </dev/null && mv $f.new $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment