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

GitHub | xingjiyuan | 7 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 | 7 months ago | xingjiyuan
    java.io.IOException: cannot create document: File not in PDF format or corrupted.
  2. 0

    Password PDF

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

    Automated exception search integrated into your IDE

  4. 0

    ADB Connection Error

    Stack Overflow | 4 years ago | Raveesh Lawrance
    java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395) at com.android.ddmlib.Device.executeShellCommand(Device.java:462) at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
  5. 0

    java.lang.IllegalArgumentException: URI scheme is not "file"

    java-forums.org | 7 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net. at slideshowapplet.SlideshowApplet.doListofImagefiles (SlideshowApplet.java:461) at slideshowapplet.SlideshowApplet.init(SlideshowAppl et.java:180) at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Plugin2Manager.java:1658)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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