I do it, but when I read the document with Acrobat Reader 6 or Acrobat 5 it produces the error "SigDict /Contents illegal data". If I do the process manually (read the "ByteRange", split the document, etc.), the validation is successful. Why?.
I use a standard X.509 v3 certificate (not the autosigned certificate generated by Acrobat).
Regards,
Luis
S�lter, Peter escribi�:
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
------------------------------------------------------- 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
