-
Notifications
You must be signed in to change notification settings - Fork 331
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
PDF rendering failed with same url, that was successfully loaded previously #72
Comments
True, my bad. Already had this issue fixed in my version of the code, and haven't released yet. Thanks for opening the issue @sunit09. Will release the fix ASAP |
Fixed in v1.0.5
|
in v1.0.5 Once this problem occurs, the PDF after normal loading can not be opened. |
I am opening pdf from a listview item click. After first installation, its working fine for 2 or 3 times with different pdf rendering. after that onSuccess is triggred, but pdf rendering failed, even for the same url that was successfully loaded previously. Max pdf size 300KB.
Please find the log below:
W/System.err: java.io.IOException: file not in PDF format or corrupted D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096 W/System.err: at android.graphics.pdf.PdfRenderer.nativeCreate(Native Method) W/System.err: at android.graphics.pdf.PdfRenderer.<init>(PdfRenderer.java:166) W/System.err: at es.voghdev.pdfviewpager.library.adapter.BasePDFPagerAdapter.init(BasePDFPagerAdapter.java:75) W/System.err: at es.voghdev.pdfviewpager.library.adapter.BasePDFPagerAdapter.<init>(BasePDFPagerAdapter.java:57)
The text was updated successfully, but these errors were encountered: