Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering quality when zooming/dezooming #16

Closed
aurelhubert opened this issue Jun 27, 2016 · 19 comments
Closed

Rendering quality when zooming/dezooming #16

aurelhubert opened this issue Jun 27, 2016 · 19 comments

Comments

@aurelhubert
Copy link

aurelhubert commented Jun 27, 2016

First, thank you very much for your work, I think a lot of people are waiting for a library like yours.

I was wondering if it could be possible to improve the render when loading the tiles? I have noticed that the library displays bad quality of the tiles when "re-calculating" the render for the given zoom (I suppose!). You'll find a screenshot in attachment.

Thank you,

untitled

@aurelhubert aurelhubert changed the title Visual artifact when zooming/dezooming Rendering quality when zooming/dezooming Jun 27, 2016
@sssvrock
Copy link

sssvrock commented Jul 6, 2016

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

@sgueniot
Copy link

sgueniot commented Jul 6, 2016

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

@sssvrock
Copy link

sssvrock commented Jul 6, 2016

Hi Sgueniot,

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

Thanks

@aurelhubert
Copy link
Author

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

@sgueniot
Copy link

sgueniot commented Jul 6, 2016

You're welcome

@barteksc
Copy link
Collaborator

barteksc commented Jul 6, 2016

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

@aurelhubert
Copy link
Author

@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 👍

@sssvrock
Copy link

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

@aurelhubert
Copy link
Author

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.

@sssvrock
Copy link

OK, I ll make sure to follow your words

@soniamelimu
Copy link

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.

@barteksc
Copy link
Collaborator

barteksc commented Mar 24, 2017

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

@soniamelimu
Copy link

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

@barteksc
Copy link
Collaborator

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

@soniamelimu
Copy link

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

@soniamelimu
Copy link

Please help on this issue.

@barteksc
Copy link
Collaborator

Did you try using antialiasing?

@soniamelimu
Copy link

No. I haven't.

@FilCZ
Copy link

FilCZ commented Mar 31, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants