Code Monkey home page Code Monkey logo

Comments (7)

rxw1 avatar rxw1 commented on May 30, 2024 1

Hi!

Something might be wrong about the deployment of version 1.7.2.

If I install the package via npm i @tato30/vue-pdf the devicePixelRatio fix doesn't seem to kick in, i.e. PDFs are displayed very blurry when zoomed or on some mobiles.

I've checked and the package from npm does seem to contain the fix.

On the other hand, when I copy the src directory directly to the sources of my project, the fix is applied and PDFs are displayed crisp and nice.

I've made a small working example here: https://github.com/rxw1/VuePDF-min

You can take a look at these two lines https://github.com/rxw1/VuePDF-min/blob/master/src/App.vue#L3-L4 and switch back and forth between installations.

I'm not so sure about what's going on.

Recording.2023-09-06.161139.mp4

from vue-pdf.

etischenko avatar etischenko commented on May 30, 2024

+1

I'm migrating the project from Vue2 to Vue3 and wanted to replace the vue-pdf library with this one, but the display quality feels much worse, especially with images that include thin lines :(. Are there any plans to improve it?

Love that it's implemented with Composition API.

from vue-pdf.

dev-mantas avatar dev-mantas commented on May 30, 2024

+1
Yeah small text is really blurry on mobile phones, works great on desktops though.

from vue-pdf.

batchor avatar batchor commented on May 30, 2024

Same here. Probably an issue related to the window.devicePixelRatio, reference: https://stackoverflow.com/a/43955689/4095689.
@etischenko @dev-mantas @alepsrp can you check your window.devicePixelRatio in console? If the value is larger than 1, which means you are with a high-resolution display or mobile devices, then most probably you get blurry results.

This is a common problem that worth of a fix @TaTo30 .

from vue-pdf.

TaTo30 avatar TaTo30 commented on May 30, 2024

Surely is a issue related to devicePixelRatio as @batchfy-bot mentioned, thanks a lot for the reference.

If there are still issues with the quality, feel free to reopen this thread.

from vue-pdf.

TaTo30 avatar TaTo30 commented on May 30, 2024

You're right @rxw1, there was a problem with the bundle deploy, it's already fixed.

from vue-pdf.

rxw1 avatar rxw1 commented on May 30, 2024

Thank you!

from vue-pdf.

Related Issues (20)

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.