AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

load pdf error java.io.FileNotFoundException:

Open anjanaps opened this issue 5 years ago • 4 comments

E/PDFView: load pdf error java.io.FileNotFoundException: at android.content.res.AssetManager.openAsset(Native Method) at android.content.res.AssetManager.open(AssetManager.java:364) at android.content.res.AssetManager.open(AssetManager.java:338) at com.github.barteksc.pdfviewer.util.FileUtils.fileFromAsset(FileUtils.java:37) at com.github.barteksc.pdfviewer.source.AssetSource.createDocument(AssetSource.java:39) at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:53) at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:25) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

anjanaps avatar Nov 19 '20 09:11 anjanaps

Did you resolve this?

WisniewskiBlake avatar Jun 07 '21 16:06 WisniewskiBlake

me too have the same problem bro did you resolve it

s-mohan-prasath avatar Jan 31 '22 11:01 s-mohan-prasath

Hey, has anyone resolved this issue, I am also facing the same problem.

GovindSingh9447 avatar Aug 19 '22 15:08 GovindSingh9447

If you are loading a PDF from a file in storage, please use the fromFile method instead of fromAsset.

shellzlhh avatar Feb 04 '24 03:02 shellzlhh