Giter Club home page Giter Club logo

Comments (4)

ArshSB avatar ArshSB commented on August 17, 2024

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.

VinceMendneck avatar VinceMendneck commented on August 17, 2024

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
Untitled45454

from darkpdf.

ArshSB avatar ArshSB commented on August 17, 2024

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.

image

Good news though! Another user found a work around to this issue, but you will have to use a different PDF viewer:

image

I hope this was helpful. I am glad you found my extension useful.

from darkpdf.

VinceMendneck avatar VinceMendneck commented on August 17, 2024

that was extremally helpful, thank you for your work, keep it up brother

from darkpdf.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.