[ 
https://issues.apache.org/jira/browse/PDFBOX-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048292#comment-13048292
 ] 

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

After applying your patch COSDocument and PDDocument will implement the 
java.io.Closeable. This doesn't seems to be related to your improvement or did  
I miss something?

> Signing improvement (settable signature size)
> ---------------------------------------------
>
>                 Key: PDFBOX-1032
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1032
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Writing
>    Affects Versions: 1.6.0
>            Reporter: Thomas Chojecki
>         Attachments: signing_improvement.patch
>
>
> Here is a small patch that add a new setter and getter 
> "preferedSignatureSize" to the SignatureOptions. So the user can set the 
> approximate signature size on one's own.
> We use a small amount of bytes for the signature itself like 0x500 and 
> additional calculate the size of the whole certificate chain that should be 
> wrote inside the signature. This is much better than setting a fix signature 
> size.
> If the user don't set any size, 0x2500 will be reserved.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to