Comments (4)
Hey Vince, thank you for your feedback.
I am not sure what you mean by changing the border to black. Can you please elaborate?
from darkpdf.
of course, as you can see in the image i have uploaded, only the actual page is black, the pdf interface is light gray, almost white, i wonder if that is a way to make everything in the page black, except for the words of course, those would still be white or maybe even another color if fully customizable
from darkpdf.
I understand now. I tried to fix this issue but it turned out to be much more work than I thought. Sadly, this issue is beyond my technical skill.
The way the dark mode for this extension works is that I apply a div
element to the entire page that inverts the colors. I tried to use this library to get the PDF content width and height, so I can apply the div
element only at those dimensions. However, the problem is that the moment you zoom in/out or click ≡ at top left corner, the dimensions change resulting in the dark mode being applied unevenly and randomly.
I also tried to gain access into the PDF document itself, so that I can view its content similar to HTML. Unfortunately, the entire PDF document is an embedded element to which we don't have access to.
Good news though! Another user found a work around to this issue, but you will have to use a different PDF viewer:
I hope this was helpful. I am glad you found my extension useful.
from darkpdf.
that was extremally helpful, thank you for your work, keep it up brother
from darkpdf.
Related Issues (12)
- Add instructions HOT 1
- Download PDF with the dark mode HOT 1
- 和"EdgeTranslate"配合使用,会失效 HOT 3
- It will not work with "Edge Translate" HOT 2
- Is it expected to work on MacOS? HOT 6
- Dark Mode turns off with tab change HOT 1
- Keeps glitching, little unstable HOT 3
- Border around darkened PDF
- Download darkened PDF
- .
- Source code seemingly outdated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkpdf.