java.io.IOException: cannot create document: File not in PDF format or corrupted.

GitHub | xingjiyuan | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NPE at DefaultScrollHandle.java:106

    GitHub | 6 months ago | xingjiyuan
    java.io.IOException: cannot create document: File not in PDF format or corrupted.
  2. 0

    Password PDF

    GitHub | 7 months ago | RupamShaw
    java.io.IOException: cannot create document: Incorrect password.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      cannot create document: File not in PDF format or corrupted.

      at com.shockwave.pdfium.PdfiumCore.nativeOpenDocument()
    2. com.shockwave.pdfium
      PdfiumCore.newDocument
      1. com.shockwave.pdfium.PdfiumCore.nativeOpenDocument(Native Method)
      2. com.shockwave.pdfium.PdfiumCore.newDocument(PdfiumCore.java:105)
      2 frames
    3. com.github.barteksc
      DecodingAsyncTask.doInBackground
      1. com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:61)
      2. com.github.barteksc.pdfviewer.DecodingAsyncTask.doInBackground(DecodingAsyncTask.java:30)
      2 frames
    4. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:288)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      4. java.lang.Thread.run(Thread.java:818)
      4 frames