Coder Social home page Coder Social logo

Comments (19)

sssvrock avatar sssvrock commented on July 4, 2024

Hi barteksc,

Thanks for providing library, I wondered after seeing this library but disappointed about rendering quality when zoom in and out. If any possibility to avoid this black glitch and make it smooth that ll be help fun

  • Can we load pdf with full or max pixel so that it won't take that much render effect and ll be smooth?
  • Can we reduce or refresh till pdf seems good to read?

Hi @aurelhubert if you find any solutions for this please let me know :)

Please clear my doubts and may be useful for others also.

Thanks
Vinod

from androidpdfviewer.

sgueniot avatar sgueniot commented on July 4, 2024

Hi,
you can change com.github.barteksc.pdfviewer.utilConstants.THUMBNAIL_RATIO value to 1f to improve it.

from androidpdfviewer.

sssvrock avatar sssvrock commented on July 4, 2024

Hi Sgueniot,

I tried with above solution, Great man, awesome solution Thanks for your valuable reply and you saved my time.

Thanks

from androidpdfviewer.

aurelhubert avatar aurelhubert commented on July 4, 2024

@sgueniot it seems clearly better, thanks for the advice 👍

from androidpdfviewer.

sgueniot avatar sgueniot commented on July 4, 2024

You're welcome

from androidpdfviewer.

barteksc avatar barteksc commented on July 4, 2024

Be careful with changing THUMBNAIL_RATIO, it may slow down less efficient devices.

from androidpdfviewer.

aurelhubert avatar aurelhubert commented on July 4, 2024

@barteksc I will try to find the best ratio between quality & perf (maybe it's already done with the original value). Thanks again for your work 👍

from androidpdfviewer.

sssvrock avatar sssvrock commented on July 4, 2024

Hi @barteksc as you mentioned I am changing the THUMBNAIL_RATIO, it is slowing down and causing error some times like : too much work on main (UI) thread. so I am reverting back to 0.5 from 1.

and how can I fit the pdf view to the device screen, by default it is not fittings and in zoomed state it is not navigating to other pdf files in my view pager.

Please suggest me how can I achieve my goal.

Thanks

from androidpdfviewer.

aurelhubert avatar aurelhubert commented on July 4, 2024

Please consider not using a closed issue to ask new questions. You already have commented this one: #4. Create a new issue if necessary, thanks.

from androidpdfviewer.

sssvrock avatar sssvrock commented on July 4, 2024

OK, I ll make sure to follow your words

from androidpdfviewer.

soniamelimu avatar soniamelimu commented on July 4, 2024

Hi barteksc,

Great PDF code. Font quality is not good when rendering the pdf. When using it on phone the text is not visible. Please help.

from androidpdfviewer.

barteksc avatar barteksc commented on July 4, 2024

@soniamelimu Could you attach some screens?
And please don't ask questions in closed issues

from androidpdfviewer.

soniamelimu avatar soniamelimu commented on July 4, 2024

Thanks for your reply. Attached is the screen-shot. Not able to clear text of the pdf in normal mode without zoom. Please help.
issue1

from androidpdfviewer.

barteksc avatar barteksc commented on July 4, 2024

What is resolution of this device? Did you use .enableAntialiasing(true)?

from androidpdfviewer.

soniamelimu avatar soniamelimu commented on July 4, 2024

No I haven't used it. Below are the details of device-

Resolution - 1280*800
Density group - 213dpi (x1.3312501)
Density Code - tvdpi
Android version- 4.4.2
API level - 17

Thanks
Sonia

from androidpdfviewer.

soniamelimu avatar soniamelimu commented on July 4, 2024

Please help on this issue.

from androidpdfviewer.

barteksc avatar barteksc commented on July 4, 2024

Did you try using antialiasing?

from androidpdfviewer.

soniamelimu avatar soniamelimu commented on July 4, 2024

No. I haven't.

from androidpdfviewer.

FilCZ avatar FilCZ commented on July 4, 2024

Hi, I have the same issue and I tried to use .enableAntialiasing(true), but it looks like the PDFView class doesn't have this metod.

from androidpdfviewer.

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.