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

Error opening encrypted PDF in Acrobat IOS/Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.13
    • 2.0.15, 3.0.0 PDFBox
    • Crypto
    • None
    • 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. itext-AES256-encrypted.pdf
          2 kB
          Tilman Hausherr
        2. mobile.patch
          1.0 kB
          Till Weiss
        3. plain.pdf
          0.4 kB
          Klaus Mueller
        4. test.pdf
          1 kB
          Tilman Hausherr
        5. testenc.pdf
          1 kB
          Klaus Mueller
        6. working_android.pdf
          1 kB
          Till Weiss

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: