Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change primary document colors and preserve image colors #11075

Closed
burtonator opened this issue Aug 17, 2019 · 1 comment
Closed

Change primary document colors and preserve image colors #11075

burtonator opened this issue Aug 17, 2019 · 1 comment

Comments

@burtonator
Copy link

(This is a feature request so not sure the but template applies here)

We need a way to be able to set the document colors.

There are a few related bugs

#3528

but one of the main issues is images within PDF files:

I had investigated using something like:

filter: invert(85%);

which actually looks decent BUT the problem comes when the PDF has images. The images end up with inverted colors. I can't add a CSS rule for them because they're in the canvas element.

What I think is needed is a high level way to change the colors of the PDF itself.

We need to support both dark and sepia modes as these are needed to be up to par with other PDF viewers as a large number of users prefer them.

It MAY be that pdf.js already supports this but I can't find how to enable it.

This is different from theming the readder as people using just the renderer lib directly via API should be able to support this too.

@Snuffleupagus
Copy link
Collaborator

Duplicate of #2071.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants