Hi Paulo,
another Question:
Is there any way to add my signature like that:
byte[] tSignatureHash =
Gov2SmartCardHelper.getInstance().sign(IOHelper.getBytesFromFile(tUnsignedFile));
X509Certificate tSigningCertificate =
Gov2SmartCardHelper.getInstance().getSignatureX509Certificate();
//pseudo-code
PdfSignatureAppearance.addExternSignatur(tSignatureHash,
tSigningCertificate);

Or can i only do this with getRangeStream()?

Thanks alot,
Best Regards 
Fionn


Paulo Soares wrote:
> 
> After calling PdfSignatureAppearance.preClose() you must call
> PdfSignatureAppearance.getRangeStream() to get the bytes that are going
> to be signed. 
> 
> Paulo
> 


-- 
View this message in context: 
http://www.nabble.com/Signing-PDF-Document-with-external-Certificate-and-Signature-%28Signature-is-INVALID%29-tf4639103.html#a13254809
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to