if I have a basic PDF with black text on a white background, is there any way to invert that? (so what I want is white text on a black background). makes for easier reading at night.
Thanks for the imagemagick tip. That works ok - but the command as given doesn't change the page colour, only the background of the letter. So, although you have lovely white on black lettering - the rest of the page is still white.Well there is the free Negative or if you use Preview, you can invert the screen colors for the entire system by pressing Command-Option-Control-8. Press the sequence again to restore the default color scheme.
if you permanently want to convert files install Imagemagick (via homebrew for example) and use:
convert -density 150 -channel RGB -negate "your-black-text-on-white-file.pdf" "inverted-new-file.pdf"
in the terminal. You can adjust the output dpi as well as the color model used in your “original” pdf if needed.
the imagemagick command inverts given objects… if there is no object in the background, well… 😀Thanks for the imagemagick tip. That works ok - but the command as given doesn't change the page colour, only the background of the letter. So, although you have lovely white on black lettering - the rest of the page is still white.
Negative is lovely, but I need a solution where the inverted PDF can go to a different device (not necessarily Apple)
convert -density 300 -background white -colorspace sRGB -alpha remove in.pdf -append out.png
-negate
parameter to invert the PNGs.