-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Accessing a pdf from internal storage throws file not found exception #2
Comments
|
barteksc, thank you for your PDF library for Android. Since File.toString() usually returns the same value as File.getAbsolutePath(), it seems shyamsam's code is not a problem. My code is almost the same as shyamsam's.
file.exists() returns true but I also get the following error message when I try to load a PDF file on the internal memory of my device.
Of course, in my manifest, I put the following permission request.
Here is my stack trace.
When I use fromAsset(), it works perfectly. Thank you for checking. |
@ENOZA You are right with |
Yeah, |
@ENOZA Sorry, I didn't notice that you are using 2nd argument of |
barteksc, thank you very much and I have to I apologize to you. |
@barteksc thanks for you reply, am still facing the same issue as @ENOZA has mentioned in earlier comments. I have given the permission in the manifest.
Am downloading the file from a remote server to a folder in phone storage. If I go to that particular directory I could see that file exists there and am able to open that file with other pdf viewers. The error an getting is when an populating the pdf. The log is shown below:
|
@shyamsam please check if version 1.1.0 fixes issue |
Hi @barteksc , Thanks for the update. But am sorry to say that am still facing some issues,
But when I download the file to any local folder and calling pdfView.fromFile(), it works like charm. Thanks |
Library doesn't support remote content, so it works as expected. Glad that update fixed loading from internal memory. |
Pdf is not working in Kitkat version.When I Click on link,It Displaying Blank Page in My Emulator,Can u help me Please |
Fix NPE in PdfView.loadComplete
Am trying a populate a pdf which is stored in internal storage is throwing FileNotFoundException.
But when I manually check the directory, I could see that file exist. Or some times its giving me com.shockwave.pdfium.PdfOpenException: Open document failed in my log
The text was updated successfully, but these errors were encountered: