Hello Manfred,

mamueller wrote:
> original.pdf, signed.pdf and .keystore attached.
> Password for key and keystore: my_password

If you inspect the signed.pdf, you see that the /Contents only span the
bytes from position 837 through 1100 while according to the /ByteRange array
they should end at 4942.

You do a


mamueller wrote:
> dic.put(PdfName.CONTENTS, new
> PdfString(sig.getEncodedPKCS1()).setHexWriting(true));

Maybe the bytes should first be copied into a long enough byte array?

Regards,   Michael.
-- 
View this message in context: 
http://www.nabble.com/Need-Help%21-Self-Signed-external-siganture-example-fails-tp25272634p25291634.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to