You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have any method to intercept and show a alert when I receive a corrupted PDF?
Today the screen show a white empty space. I not find anyone parameter for considerate if the PDF is valid or not, just print this in console:
E/PDFView ( 6319): load pdf error
E/PDFView ( 6319): java.io.IOException: cannot create document: File not in PDF format or corrupted.
E/PDFView ( 6319): at com.shockwave.pdfium.PdfiumCore.nativeOpenDocument(Native Method)
E/PDFView ( 6319): at com.shockwave.pdfium.PdfiumCore.newDocument(PdfiumCore.java:135)
E/PDFView ( 6319): at com.github.barteksc.pdfviewer.source.FileSource.createDocument(FileSource.java:38)
E/PDFView ( 6319): at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:49)
E/PDFView ( 6319): at com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:25)
E/PDFView ( 6319): at android.os.AsyncTask$3.call(AsyncTask.java:394)
E/PDFView ( 6319): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/PDFView ( 6319): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/PDFView ( 6319): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/PDFView ( 6319): at java.lang.Thread.run(Thread.java:923)
The text was updated successfully, but these errors were encountered:
Hello!
Have any method to intercept and show a alert when I receive a corrupted PDF?
Today the screen show a white empty space. I not find anyone parameter for considerate if the PDF is valid or not, just print this in console:
The text was updated successfully, but these errors were encountered: