GitHub user scotty1024 opened a pull request:

    https://github.com/apache/pdfbox/pull/7

    Update DocumentEncryption.java

    Altered to not assign value to argument "password"
    Added final declarations to many copied values.
    Altered id to byte[] as it was never used as a COSString but rather as the 
getBytes() from that.
    Added "passwordBytes" to hold reference to password.getBytes()
    Renamed "o" to "ownerPassword"
    Renamed "u" to "userPassword"

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/scotty1024/pdfbox decryptDocument-cleanup

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/pdfbox/pull/7.patch

----

----

Reply via email to