How to create pdf with inverted colours of original one?
(Just like inverting whole screen with
xcalib -i -a)
Preferably : not loosing hyperlinks. But it's not requirement. It would be nice if images also get inverted.
A while ago, I was able to find a way to invert postscript files (although it failed for some files, I guess the ones which somehow override the change).
For the PDF → postscript conversion, you can use
Note that some pdf viewers have the ability to invert colors, such as
I rigged together a Ruby script (using Inkscape and ImageMagick as subroutines) pdfinvert. It proceeds as follows:
It was designed for drawings but it may work in many more cases (it seems to need some extensions to work with uncolored backgrounds).