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

Add ability to read encrypted file & write unencrypted flie

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • PDModel, Writing
    • None

    Description

      Currently, the COSWriter determines whether or not to use encryption, which makes sense, however there's no way to tell it you don't want to use encryption. So if you open an encrypted document, there's no way to write out an unencrypted document (you can write out a document without a password, but it'll still be encrypted). This means that encrypted documents can't be merged even if the password is known.

      I have a patch which will allow writing out unencrypted documents. By default it'll work as it did before, but there's a new function which can be called to mark the document to be written out with no protection. I'll upload the patch soon.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            adamnichols Adam Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: