With most of the tools already mentioned under this question, only pdf files made out of text files (and not of scanned 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),
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 as image and saved as pdf)
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)
Beside Master PDF Editor and Zathura:
- 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
The limitations of this tool are that 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 while reading beats the purpose of improving readability, so I prefer other solutions.
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
(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).
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.