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

Fille corrupted when loading pdf files from the Android Device folder #15

Closed
sssvrock opened this issue Jun 25, 2016 · 1 comment
Closed
Labels

Comments

@sssvrock
Copy link

I have done as below:

  • Directory: pdf_file
  • pdf files: page.pdf, page2.pdf
  • Permission for file access in manifest file

When I am trying to render the pdf file, below crash is not allowing to render

06-25 12:04:46.229 20365-20365/? I/applock: launch broadcast taken: com.joanzapata.pdfview.sample
06-25 12:04:46.291 19545-19545/? D/pdf file path:: /storage/emulated/0/pdf_files/page1.pdf
06-25 12:04:46.297 19545-19560/? D/PdfDroid: initializing PdfRender JNI library based on MuPDF
06-25 12:04:46.303 19545-19560/? I/PdfDroid: Corrupted file '/storage/emulated/0/pdf_files/page1.pdf', trying to repair
06-25 12:04:46.303 19545-19560/? D/PdfDroid: Exception 'java/lang/RuntimeException', Message: 'PDF file is corrupted'
06-25 12:04:46.303 19545-19560/? D/PdfDroid: PdfDocument.nativeOpen(): return handle = 0x74f5211050

I tried to render using other applications adobe etc... its good to go and render smoothly

Can you please provide or suggest me what is happening here?

Thanks

@barteksc
Copy link
Collaborator

Stacktrace clearly shows that you are not using this library, but android-pdfview...

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

No branches or pull requests

2 participants