You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Adam Nichols (JIRA)" <ji...@apache.org> on 2010/05/19 23:18:00 UTC

[jira] Created: (PDFBOX-730) Basic implementation of Crypt filter

Basic implementation of Crypt filter
------------------------------------

                 Key: PDFBOX-730
                 URL: https://issues.apache.org/jira/browse/PDFBOX-730
             Project: PDFBox
          Issue Type: New Feature
          Components: Utilities
         Environment: Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag
            Reporter: Adam Nichols
             Fix For: 1.2.0


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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-730) Basic implementation of Crypt filter

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877130#action_12877130 ] 

Andreas Lehmkühler commented on PDFBOX-730:
-------------------------------------------

I've added your patch with version 953076. I've made some minor changes (ASF header, javadoc, small code additions)

Thanks to Adam for the contribution

> Basic implementation of Crypt filter
> ------------------------------------
>
>                 Key: PDFBOX-730
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-730
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Utilities
>         Environment: Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag
>            Reporter: Adam Nichols
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.2.0
>
>         Attachments: CryptFilter.java, IdentityFilter.java, PDFBOX-730.patch
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (PDFBOX-730) Basic implementation of Crypt filter

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler reassigned PDFBOX-730:
-----------------------------------------

    Assignee: Andreas Lehmkühler

> Basic implementation of Crypt filter
> ------------------------------------
>
>                 Key: PDFBOX-730
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-730
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Utilities
>         Environment: Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag
>            Reporter: Adam Nichols
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.2.0
>
>         Attachments: CryptFilter.java, IdentityFilter.java, PDFBOX-730.patch
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PDFBOX-730) Basic implementation of Crypt filter

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-730.
---------------------------------------

    Resolution: Fixed

Set this to resolved. We'll use PDFBOX-697 to track the implementation of other kind of crypt filters.

> Basic implementation of Crypt filter
> ------------------------------------
>
>                 Key: PDFBOX-730
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-730
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Utilities
>         Environment: Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag
>            Reporter: Adam Nichols
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.2.0
>
>         Attachments: CryptFilter.java, IdentityFilter.java, PDFBOX-730.patch
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-730) Basic implementation of Crypt filter

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877134#action_12877134 ] 

Andreas Lehmkühler commented on PDFBOX-730:
-------------------------------------------

With version 953078 I've added an implementation of the crypt filter dictionary.

> Basic implementation of Crypt filter
> ------------------------------------
>
>                 Key: PDFBOX-730
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-730
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Utilities
>         Environment: Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag
>            Reporter: Adam Nichols
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.2.0
>
>         Attachments: CryptFilter.java, IdentityFilter.java, PDFBOX-730.patch
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-730) Basic implementation of Crypt filter

Posted by "Adam Nichols (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Nichols updated PDFBOX-730:
--------------------------------

    Attachment: PDFBOX-730.patch
                IdentityFilter.java
                CryptFilter.java

Patch which implements the default Crypt filter.  It's not a complete solution, but it's better than nothing and it fixes all the PDFs I've come in contact with.  This code will be easy to expand as needed.

> Basic implementation of Crypt filter
> ------------------------------------
>
>                 Key: PDFBOX-730
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-730
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Utilities
>         Environment: Windows Vista 32-bit, Java 1.5.0_06, PDFBox HEAD tag
>            Reporter: Adam Nichols
>             Fix For: 1.2.0
>
>         Attachments: CryptFilter.java, IdentityFilter.java, PDFBOX-730.patch
>
>
> 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).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.