|
|
|
|
|
by getpolarized
2036 days ago
|
|
We went full dark mode when we released the 2.0 version of our app which has PDF and EPUB support: https://getpolarized.io/2020/10/05/Polar-2-0-Release.html the issue we had was that we were using a CSS filter like other commenters mentioned. The problem is that it inverts images too and pdfjs doesn't actually specify which parts of the document are an image as it's just writing to a canvas. My plan moving forward is to fix pdfjs so it can invert natively and the actual canvas is inverted so that images won't be inverted. I think figures would STILL be a problem though. EPUBs are much easier and we're not inverting there because we can see which one is an img. |
|