Skip to content

Instantly share code, notes, and snippets.

@Meshugah
Created June 24, 2020 05:53
Show Gist options
  • Save Meshugah/86845bf8367d8d46feb327ae26cb9ddf to your computer and use it in GitHub Desktop.
Save Meshugah/86845bf8367d8d46feb327ae26cb9ddf to your computer and use it in GitHub Desktop.
Invert PDF gist
gs -o inverted.pdf \
-sDEVICE=pdfwrite \
-c "{1 exch sub}{1 exch sub}{1 exch sub}{1 exch sub} setcolortransfer" \
-f input.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment