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 CGO_CFLAGS_ALLOW='-Xpreprocessor'
may need to be executed to run/build.
The GUI is developed with Golang QT bindings:
git clone https://github.com/rootVIII/pdfinverter.git
cd <project root>
go build -o bin/pdfinverter
./bin/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.
This project was developed on macOS Big Sur 11.0.1