Skip to content

Instantly share code, notes, and snippets.

@queeup
Created May 7, 2014 11:22
Show Gist options
  • Save queeup/d02864511c5c31e74f81 to your computer and use it in GitHub Desktop.
Save queeup/d02864511c5c31e74f81 to your computer and use it in GitHub Desktop.
Shrink PDF files with ghostscript command.
[Nemo Action]
###################################
#### DEBUGGING:
####
#### Run Nemo with the environment
#### variable NEMO_ACTION_VERBOSE
#### set to get useful log output
#### for debugging your actions
#### Sample file:
#### https://github.com/linuxmint/nemo/blob/master/files/usr/share/nemo/actions/sample.nemo_action
###################################
Active=true
Name=Shrink PDF
Comment=Shrink PDF files with ghostscript command.
Exec=gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=%P/%N_shrinked.pdf %F
Icon-Name=pdf
Selection=s
Extensions=pdf;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment