Pdf.js: Invert document colors (night mode)

Created on 7 Apr 2017  路  3Comments  路  Source: mozilla/pdf.js

[Feature Request]

Configuration:

  • Web browser and its version: Chromium 57.0.2987.98
  • Operating system and its version: Elementary OS Loki (elementary 0.4, 64-bit)
  • PDF.js version: 1.6.293
  • Is an extension: Yes

The systems default PDF viewer has this handy feature inverting the colors of the document, which I use all the time as it is considerably more convenient, especially at night. To my understanding, this should be very easy to implement, as it required no more than applying filter: invert(); to the .pdfViewer .page and maybe inverting the border image again.
It would also be handy to have the keyboard shortcut [Ctrl] + [I] for it, as it is used in the systems viewer.

Most helpful comment

Please re-open. Night mode refers specifically to @media (prefers-color-scheme: dark) { ... } CSS, which is not the same as the user generically changing text/background colors.

All 3 comments

Closing as duplicate of issue #2071 (and #2163).

Please re-open. Night mode refers specifically to @media (prefers-color-scheme: dark) { ... } CSS, which is not the same as the user generically changing text/background colors.

Please re-open. Something like [Ctrl] + [I] would be really neat.

Was this page helpful?
0 / 5 - 0 ratings