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

Can't decrypt PDF when password contains special national characters

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            fastcoretux Fastcore Tux

            Dates

              Created:
              Updated:

              Slack

                Issue deployment