darken (or lighten) a PDF
PDFInverter (GUI and CLI) will create a new PDF at the specified location from a source PDF. All colors will be inverted (original shown on left):
Unfortunately page links are not preserved, but this program will darken PDFs making them suitable for night reading.
A 2-3 page PDF will invert very quickly. However a 400 page PDF may take 3-4 minutes.
This project should build on any platform with ImageMagick bindings for Golang.
export CGOCFLAGSALLOW='-Xpreprocessor' may need to be executed to run/build.
The GUI is developed with Golang QT bindings:
go get github.com/rootVIII/pdfinverter
# Required -i input PDF file path -o output PDF file path Note: If no command line arguments are provided, the GUI version will open.