18

I need to invert all the colors of a PDF document (background, text, graphics, and images). I want it persistent in the file so the inverted viewing options, that some viewers offer, won't help.

Rasterizing the document and using image manipulation software is also not an option.

I read somewhere that this can be done with the Enfocus PitStop plugin for Acrobat. However I didn't see a corresponding command anywhere. Am I missing something?

Then I read that the ARTS PDF Crackerjack plugin for Acrobat offers negative printing so I tried that, too. The option is there but it simply doesn't work.

I have been searching for very long for a way to do this. It seems like a common enough task but I just can't find out how to do it.

Are there maybe any virtual printer drivers or something of the sort that support negative printing?

Can anyone help?

4
  • 2
    Hey, man, try using the PDF reader called Evince. I know that it allow you to invert colors (inclusive images) for reading, but I don't know about an option to print them in that way (I don't have a local copy and cannot install here to see).
    – kokbira
    Jul 15, 2011 at 17:51
  • So if I understand correctly you must keep text as text... but if you realize that you just need to have a pdf (also an image in a pdf) you can use ImageMagick by calling "convert input.pdf -negate output.pdf" Jul 18, 2011 at 10:25
  • Similar question : superuser.com/questions/286403/…
    – landroni
    Nov 4, 2014 at 10:38
  • 7

3 Answers 3

8

I rigged together a Ruby script (using Inkscape and ImageMagick as subroutines) pdfinvert. It proceeds as follows:

  1. Split PDF into individual pages.
  2. Convert each page to SVG.
  3. Invert colors¹ in the SVG; embedded PNG images are taken care of².
  4. Reconvert each page to PDF.
  5. Join pages together for the final result.

It was designed for drawings but it may work in many more cases (it seems to need some extensions to work with uncolored backgrounds).

As it is, this will probably only work on GNU/Linux (and maybe other Unix-ish systems) due to the way third-party tools are called, but you may be able to adapt what does not work to Windows.


  1. You can also specify a color replacement table.
  2. The approach probably extends to JPG or any other format ImageMagick's convert can deal with.
6

Did you try:

Edit, Preferences, Accessibility, then check the box that says replace colors. 

enter image description here

3
  • Foxit Reader has an option like this, but it doesn't seem to affect images.
    – NiteCyper
    May 31, 2014 at 17:12
  • 4
    this does not answer the question; the question explicitly said they want to permanently alter the file, not just invert colors for the viewer
    – xdavidliu
    May 24, 2019 at 0:09
  • And it doesn't work for images. May 26, 2020 at 10:21
0

i managed to do it like this:

download PDF24 creator; open your .pdf and save it as .png or .jpg; open the new created image, modify it as you wish (ex. invert colors) and save; open and merge* files in pdf24 and save it as .pdf :)

*the bad part: must do page by page :( a good compromise in order to save precious ink

2
  • 1
    "Rasterizing the document and using image manipulation software is also not an option." Jan 27, 2015 at 22:11
  • 1
    This solve might not work for OP but google brings more general questions here. Jun 28, 2019 at 20:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .