Created
October 26, 2020 01:09
-
-
Save tonio-m/44cb5b502abc1235df005fbdd5396a0f to your computer and use it in GitHub Desktop.
use ghostscript to invert colors of a pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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