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

Marco Monacelli commented on PDFBOX-3336:
-----------------------------------------

PDSignature signature = new PDSignature();
signature.setFilter(PDSignature.FILTER_ADOBE_PPKLITE);
signature.setSubFilter(PDSignature.SUBFILTER_ADBE_PKCS7_DETACHED);
signature.setName(x509.getName());

//where this is mysignature interface
document.addSignature(signature, this);
document.saveIncremental(fos);

//With other documet work fine



> several errors in the incremental save
> --------------------------------------
>
>                 Key: PDFBOX-3336
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3336
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.1
>         Environment: PDFBox 2.0.1 java 8
>            Reporter: Marco Monacelli
>            Priority: Blocker
>         Attachments: append_by_pdf_box_no_signature.txt, document_type_2.pdf
>
>
> We have several mistakes in pdf signature.
> 1) Some PDF ar not signed but no error is arised 
> 2) Others contain the signature but acrobat reader does not show it .
> The documents of the first type are confidential and we can only provide the 
> information appendend by pdfbox to the original PDF. 
> For the second case we will provide you the original document .



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to