Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2492

Java 8u25 IllegalBlockSizeException decrypting pdf

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 2.0.0
    • Fix Version/s: 1.8.8, 2.0.0
    • Component/s: PDModel
    • Labels:
      None

      Description

      Java 8u20 is ok

      java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage out.pdf

      Exception in thread "main" java.io.IOException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
      at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:115)
      at javax.crypto.CipherInputStream.read(CipherInputStream.java:233)
      at javax.crypto.CipherInputStream.read(CipherInputStream.java:209)
      at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:331)

      http://lucene.472066.n3.nabble.com/PDF-test-failing-on-trunk-td4166517.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                ssteiner1 simon steiner
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: