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

Can't decrypt PDF when password contains special national characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.17
    • None
    • Crypto
    • 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

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

              Dates

                Created:
                Updated: