android-pdfview
android-pdfview copied to clipboard
Content render problem after zooming
Thank you for this job , i have problem after zooming . see below screenshot .
any way to solve it ?
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.
Also having this issue with the latest version :(
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.
@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?).
Same problem :(
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
@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 Did the get the issue resolved regarding the rendering process? I am having the same one now after importing it as Module
@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 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.
@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 Can you please mention the exact parameter changes that you made to minimize the rendering? It would be a great help. Thanks.