White background color is harm to eyes. How to change pdf background color in evince? Now I use evince 3.4.0 in ubuntu 12.04 x64.
White background color is harm to eyes. How to change pdf background color in evince? Now I use evince 3.4.0 in ubuntu 12.04 x64.
I am sure that you can invert the color but I am not sure whether you can use a different color of your choice as a background color.
To invert the color.
Goto: View -> Inverted Colors (Ctrl+I)
Hope this helps.
I have have been fighting this issue for quite a while now. The best solution I have come up with is to use the
xcalib
command via two easily accessible application launchers on my tool/app bar. I have named them "Screen Mode" and "Paper Mode".With the help of
xcalib
I can activate on-the-fly two different screen configurations without profiles and other bloat. Note thatxcalib
is the smallest bit of software and won't take any space or memory as it passes the configurations to the display adapter and exits. You can forget about the heavy specialist software like argyll+dispcalgui etc.Firstly install
xcalib
with:Then set your two launchers with these commands:
To set the "Paper Mode" use:
To (re)set back to "Screen Mode" use:
As you can probably tell I am adjusting the parameters per-channel and my effort was to produce a Kindle like result. Obviously you can and should adjust these according to your preferences and screens. Of course this adjusts the screen as a whole but, for me at least, this has been a blessing for those all white IDEs. It will take you a couple of minutes to get used to it, but you'll never go back. It's a true Eye-Saver!
The command usage is
xcalib -ChannelName Gamma Brightness Contrast
and are all separated with a single space. The-alter
feeds the signal to the adapter. The-clear
send a "Clear" message to the adapter to clear all adjustments back to normal.IMPORTANT TIP: In order not to loose the blackness of letters always keep Brightness to 1 as shown above. Play around only with Gamma and Contrast. Gamma will produce a darker/lighter result and playing with the Contrast between channels will adjust the resulting color.
Another TIP: Set the "Paper Mode" shortcut to first reset and then set the color (e.g., "xcalib -clear && xcalib -red 1.7 1 64 -green 1.7 1 57 -blue 1.7 1 28 -alter"), so that if accidentally use it multiple times it does not change you display color to black.
I hope this will prove handy to many of you!
I found Okular as better pdf viewer. It let you change from GUI the background color and the font color to any value you want. i.e.
Setting -> Configure Okular -> Accessibility -> Change Color
For example, set :
I had Okular version 0.16.5
In Okular version 1.9.3
Setting -> Configure Okular -> Accessibility
Enable the checkbox for Change Color
In "Color mode" select "Change Dark & Light Colors"
"Dark Color" i.e. (font color) to any light color you want e.g. White or light gray
"Light color" i.e. (background color) to dark color e.g. Black Or dark gray
Change the background color of evince to the light greed and protect your eyes
Config the compile environment and download source
Change the source to your color, such as the light green(R:199,G:237,B:204) Edit the function
ev_document_misc_invert_surface
in file:libdocument/ev-document-misc.c
at line 467change
to
Config and make and make install
Then make, and I get the error:
Of course, fix it by:
In the version of Ubuntu 18.04, I found several errors as the above case and I fix them with the GCC ignored. (please add # before the pragma in the following code)
Then change the config in
/usr/share/applications/evince.desktop
When click the view->Inverted Color, your background color will change to light green
Enjoy it!
Thanks for Evan's invitation. Here is what I did to achieve the light green background in Evince 2.30.3.
As mentioned in a thread(https://mail.gnome.org/archives/evince-list/2011-November/msg00015.html) posted by me several years ago, I replaced the source code from Line 327 to 329 of libdocument/ev-document-misc.c with the following snippet:
Note that the code position may vary for different versions of Evince.
Then re-compile Evince:
After compilation, DONOT run make install, because this may change your locale settings of Evince. Just backup the original /usr/lib/libevdocument.so.2.0.0, and replace it with the modified libdocument/.libs/libevdocument.so.2.0.0 manually.
Then re-launch Evince, open a .pdf file(or other supported formats, whatever), and use the "Inverted Color" option to change the background color into light green.
May this be helpful :)
I am also trying to change the background color of evince but have failed.
Probably another application
qpdfview
is useful to you. It can color all PDF documents with green background, including the scanned PDF documents, it is comforting your eyes.Unfortunately, the edition installed from synaptic is not working to color the scanned PDF documents, but an edition installed with PPA is good for that. Just do the following commands.
You need to change the color parameter.
And as regarding to scanned PDF documents, you need to hit the button view-composition-darken with paper color, and it will be ok.