DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.15k stars 1.9k forks source link

Trouble with long file names? #864

Open baghaii opened 4 years ago

baghaii commented 4 years ago

I am on the stable version of the app. I had a file called images/How_To_Help_Animals_Stuck_on_Glue_Traps.pdf in my assets directory. This app kept insisting that the file did not exist. I reduced it to images/Glue_Traps.pdf, and it magically recognized the file.

When I give it the whole path file:///android_asset/images/Glue_Traps.pdf, it still seems to have trouble.

I am noticing some people said that they had trouble with spaces in the file names in one of the older issues.

r9software commented 4 years ago

I would say the trouble is with long paths, or paths itself, I'm having the exact same issue while trying to load from string, but I moved it to an URI and that worked