Skip to content

Instantly share code, notes, and snippets.

@mintbridge
Created January 28, 2013 17:26
Show Gist options
  • Save mintbridge/4657374 to your computer and use it in GitHub Desktop.
Save mintbridge/4657374 to your computer and use it in GitHub Desktop.
# convert the version for each pdf in a directory and put them in a sub folder of output
for input in *.pdf; do gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile="output/$input" "$input"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment