-
Notifications
You must be signed in to change notification settings - Fork 134
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
Cannot open PDF file after open wrong file #23
Comments
Comment by msamyatl @luongdolong same problem here. were you able to solve it? |
Comment by wywy4pm the same problem. |
Comment by antonkovalyov351 +1 |
Comment by AswinpAshok Same issue. Any solutions? |
Comment by antonkovalyov351 I used PdfiumAndroid library instead of default |
Comment by dikadk +1 |
Comment by dbland87 +1 |
Comment by mnxamdev This is a pretty serious issue. Seems like the ParcelFileDescriptor that is used as a constructor parameter is being held onto somehow and it keeps getting used instead of any new ones that are passed into any new instances of the PdfRenderer object. I would like to not have to use a third party library to display PDFs in my app. |
Comment by msamyatl @mnxamdev the problem was fixed in android 28: https://issuetracker.google.com/issues/37052344 |
Comment by mnxamdev
Thanks for the information, good to know. How can this be only fixed in Android 9??? What about the thousands of customers that we have that aren't on Android 9??? Is there some sort of work around which we can implement? Is there a way we can just get the PDF bytes and open that way? |
Comment by msamyatl Your best best is to probably use another pdf library to detect On Sat, Jun 1, 2019 at 6:36 AM mnxamdev [email protected] wrote:
|
Comment by pgaikwad-os Still facing this issue in API-28 and API-29. Stacktrace :
Device Information: Pixel C - v8.1.0 Other links referred: Any solution? |
This is still happening with android Api 27. Any fix or workaround? Edit: A workaround I implemented is to check first whether the file is a valid PDF by checking the file magic number: https://en.wikipedia.org/wiki/List_of_file_signatures |
Issue by luongdolong
Thursday May 24, 2018 at 03:57 GMT
Originally opened as googlearchive/android-PdfRendererBasic#25
I have a file: pdf.txt. I rename it to: pdf.pdf
Below is my steps:
Now I cannot open PDF file.
If I kill app, and open app again. File "sample.pdf" show ok. And if I open wrong file. I cannot open any files more.
How can I resolve this issue? Thank you
The text was updated successfully, but these errors were encountered: