Hi Luis,
you need to calculate the signature over the whole PDF (without the
contents-data).
Therefore it's the best to
- fill the contents-field with a placeholder
- write out the whole PDF to a ByteArray
- calculate the hash-value and signature
- replace the /Contents-Data with the new data in the byte array
It's useful to do the same procedure (set placeholder-data / write out /
replace)
with the /ByteRange value, too.
Regards,
Peter
-----Urspr�ngliche Nachricht-----
Von: Luis Pascual Forner [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 1. M�rz 2004 13:10
An: [EMAIL PROTECTED]
Betreff: [iText-questions] How to modify a signature dictionary
Hi,
I need to modify the "/Contents" field from a signature dictionary after
"addToBody" it. How can I do?.
thanks in advance,
Luis Pascual
--
Si su programa de correo le informa de que la firma no
es v�lida, se puede deber a que no tiene instalado el certificado de la
Autoridad Certificadora (CA). Lo puede obtener en http://www.pki.gva.es.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
iText-questions mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions