-
Notifications
You must be signed in to change notification settings - Fork 262
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 render error #557
Comments
@hucong730 Do you have the original pdf file? |
I got the same issue, while opening a pdf with password. I didn't get that with a pdf without password. `val inputStream: InputStream = FileInputStream(file)
|
@MikaReesu I can try to solve it, can you provide the PDF file? |
Here the document :
Password : azerty
…On Fri, Feb 2, 2024, 10:10 LangLord ***@***.***> wrote:
@MikaReesu <https://github.com/MikaReesu> I can try to solve it, can you
provide the PDF file?
—
Reply to this email directly, view it on GitHub
<#557 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATBTBWVSJHS4CN7WQ3BR2GTYRSUPJAVCNFSM6AAAAABB5ZLGHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRTGM3TQMRYHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
No pdf found |
Didn't work from Gmail here the pdf. |
I'm getting a normal rendering here. |
I'm getting a normal rendering here. `try {
|
use : |
What is that? I tried with a FILE and an InputStream but it was rendered like I previously showed. Not with all the letters of the text. About your assetManager, how to initialise it ? In the sample I see a getAssets(), but I didn't find the function in the sample. I'm getting the PDF from a DocumentPicker, so I can get the path with file.path. Not sure if that is gonna work with all the versions of Android. |
For library, I just found where to add, but why do I need to add the library that way? implementation "com.tom-roush:pdfbox-android:2.0.27.0" This should contain everything needed, normally. Is there a particular reason why, we have to do add the folder library manually? |
|
I understand that "com.tom-roush:pdfbox-android:2.0.27.0" is buggy, you can build a new aar based on the master branch of "PDFBox-Android". |
Thank you. I'll be looking for another library. Seems too risky for production app. |
I used the demo and just replaced the Pdf file. There was a problem with the picture displayed after running.
The text was updated successfully, but these errors were encountered: