Skip to content

(Answer: Can't be changed through extensions) Controlling PDF background color (behind pages) in Edge / Chromium #7501

Answered by luo-chuan
matteyas asked this question in Q&A
Discussion options

You must be logged in to vote

If you use Firefox, you can edit userContent.css like this:

@media (prefers-color-scheme: dark){
  .pdfViewer{filter: invert(1) hue-rotate(180deg);}
}

If you use Chrome or Edge, install the extention "PDF Reader", then edit the extention option like this:

html[data-theme*="dark"] .pdfViewer{
  filter: invert(1) hue-rotate(180deg);
}

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@matteyas
Comment options

@Gusted
Comment options

@matteyas
Comment options

@r3a1d3a1
Comment options

Comment options

You must be logged in to vote
2 replies
@matteyas
Comment options

@matteyas
Comment options

Answer selected by matteyas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants