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

Can't decrypt PDF when password contains special national characters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.17
    • Fix Version/s: None
    • Component/s: Crypto
    • Labels:
      None

      Description

      I tried to encrypt PDF by user password which contains national characters. Encryption was successful but I can't open it and decrypt it in any PDF browser.

      Due to Cookbook example (https://pdfbox.apache.org/2.0/cookbook/encryption.html) it could be tested by changing StandardProtectionPolicy instantiation.

      StandardProtectionPolicy spp = new StandardProtectionPolicy("ěšč", "řžý", ap);
      

      Maybe my usage is wrong... In this case please accept my apology.

      Thank you!

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fastcoretux Fastcore Tux
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: