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

Error opening encrypted PDF in Acrobat IOS/Android

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.13
    • Fix Version/s: 2.0.15, 3.0.0 PDFBox
    • Component/s: Crypto
    • Labels:
      None
    • Environment:
      Linux, OSX

      Description

      When encrypting a PDF document using command line, the encrypted PDF is not useable in Acrobat Reader IOS or Android.

      Command Line:

      java -jar pdfbox-app-2.0.13.jar Encrypt -O test -U test -keyLength 256 -canAssemble false -canExtractContent false -canModify false -canModifyAnnotations false plain.pdf testenc.pdf 

      Other viewers like Foxit work.

      Java Version:

      java version "1.8.0_201"
      Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
      Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

      Tried encryption under Linux and OSX.

       

        Attachments

        1. working_android.pdf
          1 kB
          Till Weiss
        2. testenc.pdf
          1 kB
          Klaus Mueller
        3. test.pdf
          1 kB
          Tilman Hausherr
        4. plain.pdf
          0.4 kB
          Klaus Mueller
        5. mobile.patch
          1.0 kB
          Till Weiss
        6. itext-AES256-encrypted.pdf
          2 kB
          Tilman Hausherr

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              kmueller01 Klaus Mueller
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: