I tried the following way to change the PDF file background color in a Firefox browser (Firefox version 124.0, following an answer from here):
- Enter setting with
about:config - set
pdfjs.forcePageColorstotrue - set
pdfjs.pageColorsBackgroundto a hex value color e.g.,#FBF0D9
The issue is that the image color in the pdf is changed to black and white. Does any one know how to set the pdf background color to a specific hex value in Firefox (background color only)? I can do it in Acrobat Reader, and it only change the PDF background color and does not change its image color.
I also tried to use filter following this. I use this to find the filter setting. Then the color of the whole pdf is filtered, almost unreadable.
There is a Add-on for Firefox doqment and it can change the background color only. So it seems there is some way to do it. I am not sure if there is some setting currently in Firefox to do it.




