pdf-issues icon indicating copy to clipboard operation
pdf-issues copied to clipboard

Can we have direct dark mode support in PDF?

Open crlf0710 opened this issue 1 year ago • 3 comments

Recently, it has been a trend for many software to support the so-called "dark mode". I believe some PDF software has already supported some heuristic-based dark mode pdf viewing, e.g. Turn page background into black and text into white, and some other content tweaking.

Still, I feel it might be beneficial for the whole community to have some standardized means to author and render PDF documents under dark mode, and make as many publicly available PDFs as possible "dark-mode ready".

crlf0710 avatar Nov 30 '23 03:11 crlf0710

Interesting idea - and with implications for accessibility of content across the spectrum of visual disabilities.

A somewhat similar idea was presented by BenQ at the PDF Association's recent Symposium on Advancing the PDF Imaging Model.

petervwyatt avatar Nov 30 '23 10:11 petervwyatt

Standard guidelines for dark mode rendering would be definitely desirable, since current implementations are often based on simple color inversion schemes which are sub-optimal for human vision.

Eg, Evince supports a "Night mode" with hard B&W contrast and image inversion, which has come under scrutiny: https://gitlab.gnome.org/GNOME/evince/-/issues/1501

Here it is a rendering example:

  • dark mode: evince_dark
  • normal mode: evince_normal

stechio avatar Dec 03 '23 15:12 stechio

@crlf0710 Dark Mode is really just a special case of the ability to provide alternative styling for a PDF.

As @petervwyatt notes, for Accessibility considerations you have users with varying requirements around color blindness, reduced vision, etc. Were we to address this, it would be better to look at the larger picture of 're-styling"

lrosenthol avatar Feb 06 '24 13:02 lrosenthol