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

Basic implementation of Crypt filter

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: Utilities
    • Labels:
      None
    • Environment:
      Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag

      Description

      I got an exception when trying to merge some documents which read "Unknown stream filter:COSName

      {Crypt}

      ". I've looked around and it found this is a feature which was introduced in version 1.5 of the PDF spec. PDFBox doesn't have this filter implemented yet. This should be implemented per section 7.6.5 "Crypt Filters" of the PDF Specification (for reference, I'm looking at version 1.7 of the spec).

      I only have one example PDF which requires this filter and it uses the default encryption (Identity), so this will be the only type of Crypt filter which will be implemented for now. Since I don't have an example which has a filter "Name", I will only be implementing the case where the default is used as I have no test case for Name==Identity. If the "Name" is specified, it will throw an exception (currently it throws an exception for any Crypt filter).

        Attachments

        1. CryptFilter.java
          2 kB
          Adam Nichols
        2. IdentityFilter.java
          1 kB
          Adam Nichols
        3. PDFBOX-730.patch
          2 kB
          Adam Nichols

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                adamnichols Adam Nichols
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: