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

CryptographyException for file that isn't encrypted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • None

    Description

      I get this with the attached file:

      Exception in file: rennie-fresh-gebrauchsinformation.pdf
      java.io.IOException: Error (CryptographyException) while creating security handler for decryption: The supplied password does not match either the owner or user password in the document
      12.03.2014 20:44:06.063 ERROR [main] org.apache.pdfbox.pdfparser.NonSequentialPDFParser:1888 - Can't find the object xref at offset 4543
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.initialParse(NonSequentialPDFParser.java:444)
      at org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parse(NonSequentialPDFParser.java:741)
      at org.apache.pdfbox.pdmodel.PDDocument.loadNonSeq(PDDocument.java:1152)
      at org.apache.pdfbox.pdmodel.PDDocument.loadNonSeq(PDDocument.java:1135)
      at pdfboxpageimageextraction.ExtractImages.doPdf(ExtractImages.java:203)
      at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:86)

      This didn't happen ~ 2 weeks ago, so I suspect its a regression.

      Attachments

        1. Rennie-Fresh-gebrauchsinformation.pdf
          1.65 MB
          Tilman Hausherr

        Activity

          People

            jahewson John Hewson
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: