android-pdfview icon indicating copy to clipboard operation
android-pdfview copied to clipboard

Content render problem after zooming

Open alizarei95 opened this issue 9 years ago • 12 comments

Thank you for this job , i have problem after zooming . see below screenshot .

screenshot_2016-02-28-22-59-37

any way to solve it ?

alizarei95 avatar Feb 28 '16 19:02 alizarei95

Yeah, a many have. But so far, I did not find anything, to fix it. Really sad, because this is the only solution I found, which is free for commercial use. But like this, it is not really usable.

EDIT: Apparently there was a fix on the 16th October 2015. The newest version on github is 1.0.5-SNAPSHOT, maven/gradle only has the version 1.0.4. (--> therefore the version, we propably have). I just dont know, how to import the newer version into android studio.

MarvinBerger avatar Mar 01 '16 13:03 MarvinBerger

Also having this issue with the latest version :(

SierraII avatar Mar 01 '16 18:03 SierraII

So, After hours of trying to compile it from github, I finally managed to import the pdf viewer by simply downloading and inserting the source. After adding the library I made it working. Although the issue here was not fixed, I simply inserted the merge requests and was able to fix it. The rendering process is still a bit slower than that from Adobe, but you gotta live with it.

This is a very dirty solution, but I just do not know how to establish it in any other way.

MarvinBerger avatar Mar 01 '16 23:03 MarvinBerger

@Pommes9485 could you point me towards the merge requests to the library that you're talking about? I've also been unable to find the 1.0.5 on Github (on the Releases page?).

rrshaban avatar Apr 02 '16 20:04 rrshaban

Same problem :(

korujzade avatar Apr 10 '16 23:04 korujzade

The only way to get this working is to follow Pommes9485 solution. Yes it is messy. No there is currently no other way around it.

Download the source code. Add it as a module to your Android App and change the grid size as shown in this commit.

We will have to wait for the merge (one day).

https://github.com/JoanZapata/android-pdfview/pull/175/commits

This is the commit: https://github.com/JoanZapata/android-pdfview/pull/175/commits/4247d3ccb2824291a8586cfdc1b364e9950fd53d

SierraII avatar Apr 11 '16 14:04 SierraII

@Pommes9485 @SierraII thanks for the solution. It works fine now. Do you guys know how can I hide rendering process when I zoom it so that users won't notice the rendering process?

korujzade avatar Apr 11 '16 18:04 korujzade

@korujzade Did the get the issue resolved regarding the rendering process? I am having the same one now after importing it as Module

TheMaxCoder avatar Apr 24 '16 19:04 TheMaxCoder

@maxsays yes. You also need to change GRID_SIZE variable from 7 to 10 in Constants.java file as Sierrall has mentioned.

https://github.com/JoanZapata/android-pdfview/pull/175/commits

korujzade avatar Apr 24 '16 19:04 korujzade

@korujzade I have got that solved already I was asking about hiding the rendering process? did you succeed in hiding it while it renders the page when we zoom in or out and pixels moves all over the screen.

TheMaxCoder avatar Apr 26 '16 06:04 TheMaxCoder

@maxsays I've managed to minimize that by changing some of the other parameters in Constants.java, namely PART_SIZE, the dimension of the boxes, and THUMBNAIL_RATIO, the quality of the preview renderings.

I've also experimented with increasing LOADED_SIZE, but I think other changes would need to be made to take advantage of it.

rrshaban avatar Apr 26 '16 20:04 rrshaban

@rrshaban Can you please mention the exact parameter changes that you made to minimize the rendering? It would be a great help. Thanks.

shashank8293 avatar May 23 '16 11:05 shashank8293