AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

Rendering quality when zooming/dezooming

Open aurelhubert opened this issue 10 years ago • 19 comments

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 avatar Jun 27 '16 11:06 aurelhubert

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

sssvrock avatar Jul 06 '16 07:07 sssvrock

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

sgueniot avatar Jul 06 '16 07:07 sgueniot

Hi Sgueniot,

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

Thanks

sssvrock avatar Jul 06 '16 08:07 sssvrock

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

aurelhubert avatar Jul 06 '16 10:07 aurelhubert

You're welcome

sgueniot avatar Jul 06 '16 11:07 sgueniot

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

barteksc avatar Jul 06 '16 19:07 barteksc

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

aurelhubert avatar Jul 07 '16 08:07 aurelhubert

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

sssvrock avatar Jul 13 '16 08:07 sssvrock

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.

aurelhubert avatar Jul 13 '16 08:07 aurelhubert

OK, I ll make sure to follow your words

sssvrock avatar Jul 13 '16 09:07 sssvrock

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.

soniamelimu avatar Mar 24 '17 07:03 soniamelimu

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

barteksc avatar Mar 24 '17 07:03 barteksc

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

soniamelimu avatar Mar 24 '17 08:03 soniamelimu

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

barteksc avatar Mar 24 '17 09:03 barteksc

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 avatar Mar 24 '17 09:03 soniamelimu

Please help on this issue.

soniamelimu avatar Mar 24 '17 10:03 soniamelimu

Did you try using antialiasing?

barteksc avatar Mar 24 '17 10:03 barteksc

No. I haven't.

soniamelimu avatar Mar 24 '17 10:03 soniamelimu

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.

FilCZ avatar Mar 31 '17 11:03 FilCZ