Is there a pdf reader allowing me to change background color of (arXiv) pdfs?
You can do this in Okular
if you don't mind pulling in kde dependencies.
sudo apt-get install okular
The option is found in Settings/Configure Okular.../Accessibility
by checking Change colors
then Color mode: Change Paper Color
and select a color in the swatch below. Works with several pdf files I have from arxiv, but perhaps unsurprisingly, doesn't work with pdf files that are simply scans of pages.
There is another possibility. Install zathura. It is a lightweight PDF, DJVU and PS reader. It is highly configurable and of course it allows changing the color of the background and the text. Just add these lines to ~/.config/zathura/zathurarc
:
set recolor true
set recolor-darkcolor "#dcdccc"
set recolor-lightcolor "#1f1f1f"
The above color variables will give you this:
I also recommend you to set these options:
set window-title-basename "true"
set selection-clipboard "clipboard"
For help go to the Arch forums.
Look here for mouse and key bindings.
Disclaimer: I am in no way related to the development of zathura. I am just a happy user.
With most of the tools already mentioned under this question, only pdf files made out of text files (and not of scanned/photocopied text saved as image) can be treated so that colors of page and fonts (or at least of page, as expected by the OP) are changed. In case the available text is a pdf formed of images (e.g. paper that was scanned) the pages will in many cases show paper-like black-on-white text (even if images are extracted and converted to an ebook format as said here). There, the only possible color change of image-based pdf-s is inverting colors with viewers that have that option: Evince, Okular (as said in previous answers) Qoppa-PDFStudioViewer), xpdf
(with the -rv
argument, see here), mupdf
(here).
There are exceptions, though, viewers that can do more than just inverting colors or changing only the background:
For all pdf (including image-based) files
(image-based = e.g. a book or article scanned/photocopied and saved as pdf)
- Zathura - with settings like those mentioned in this older answer
and
- Master PDF Editor
can change color of both pages and fonts even in image-based pdf files.
Select "more" to have any color:
With an image/scanned text, a value of#3b3537
for the page color and #b0afac
for the font color gives this:
Thus, a scanned pdf text can be read with different color profiles, just like an epub can in an ebook reader.
For text-based pdf files
(text-based= e.g. text files saved/exported/printed as pdf)
(A)
PDF readers, beside Master PDF Editor and Zathura:
- Adobe Reader 9:
- Foxit Reader for Linux has the option of changing both the color of background and of text — either by selecting a color profile
or by selecting any color
But there are some limitations of Foxit Reader for the moment (version 2.4.4): it has no dark GUI (while not following a dark desktop theme) and no full-screen.
Having a large white area on the screen all the time comes against the purpose of improving readability, so I prefer other solutions.
(B)
E-book readers
Most eBook readers offer color settings for page and font, but only some of them can open pdf documents. As far as I can tell they do not display the text as well as a pdf viewer in all cases. I have tested only two:
Bookworm - it has 3 color profiles but each profile can be edited (fully adjustable colors for background and fonts under Preferences). Poor pdf text rendering in the document tested by me - sometimes lacking spaces between words and wrong display of non-English accented characters.
Calibre's Ebook Viewer - better rendering of pdf text (very few problems with the same document tested in Bookworm). Color settings are accessed by opening a book, right-clicking, then selecting Preferences - Colors.
The quality of pdf display in an ebook reader may depend on the pdf too. I have noticed that, when trying to open a pdf, ebook readers run pdftohtml
tool.
About Okular
(Considering its installation outside KDE, bringing that many dependencies looks problematic to me, but I may be wrong. In Xfce, it wants to install 100 of them. Trying to install as Flatpack: 798,8 MB will be downloaded in total. 2,7 GB more disk space will be used.
— The method I used was Snapcraft - sudo snap install okular
).
Okular can invert colors. It cannot change the font color, only that of the background (strictly what the OP asks: dimming the color of the page a bit. The page color cannot be set too dark, or it will get as dark as the font).
The same is true about Qpdfview — which can be used as alternative to Okular for the present purpose especially because it is much lighter and easier to install outside KDE.
I think pdf documents can be made much more readable with other tools mentioned under this question, which can modify both page and font color.
The best thing that can be achieved with Okular is something like this:
I very much doubt Okular is the best tool for the purpose of readability, given that not only the above, but any other color combinations can be achieved by other methods.