Change background color for PDFs. [Linux.]
-
- Posts: 64
- Joined: November 13th, 2016, 10:13 pm
Change background color for PDFs. [Linux.]
I am trying to make that #fffffff white less white, hurts in a dark room I went through a bunch of recipes and addons which can change background for html (not always but quite often they do work) but none worked for PDFs. The maximum they can was sidebar or toolbar or background _around_ pages but not the pages themselves. Is it achievable at all?
Last edited by LIMPET235 on July 21st, 2021, 5:03 am, edited 1 time in total.
Reason: Added [Linux.] to the title.
Reason: Added [Linux.] to the title.
-
- Posts: 6437
- Joined: February 3rd, 2009, 6:29 pm
Re: Change background color for PDFs. [Linux.]
Similar thread: http://forums.mozillazine.org/viewtopic ... p=14873910
Read replies by jscher2000.
You can change the pdfjs.textLayerMode pref to 0. That removes the shadow or double font in my test.
DISABLE: 0
ENABLE: 1
ENABLE_ENHANCE: 2
You can change the pdfjs.viewerCssTheme pref to 2 for dark theme.
AUTOMATIC: 0
LIGHT: 1
DARK: 2
Reference
http://searchfox.org/mozilla-release/so ... iewer.html
http://searchfox.org/mozilla-release/so ... /viewer.js
http://searchfox.org/mozilla-release/so ... viewer.css
Read replies by jscher2000.
You can change the pdfjs.textLayerMode pref to 0. That removes the shadow or double font in my test.
DISABLE: 0
ENABLE: 1
ENABLE_ENHANCE: 2
You can change the pdfjs.viewerCssTheme pref to 2 for dark theme.
AUTOMATIC: 0
LIGHT: 1
DARK: 2
Reference
http://searchfox.org/mozilla-release/so ... iewer.html
http://searchfox.org/mozilla-release/so ... /viewer.js
http://searchfox.org/mozilla-release/so ... viewer.css
-
- Posts: 64
- Joined: November 13th, 2016, 10:13 pm
Re: Change background color for PDFs. [Linux.]
oh cool, this did it:
thanks!
Code: Select all
canvas {
filter: brightness(0.8) !important;
}