Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

AW: [iText-questions] How to modify a signature dictionary

"Sölter, Peter"

2004-03-02

Replies:

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:lpascual@(protected)]
Gesendet: Montag, 1. März 2004 13:10
An: itext-questions@(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 iText-questions@(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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions


©2008 junlu.com - Jax Systems, LLC, U.S.A.