Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] iText breaks existing signature

Martin Brunecky

2007-06-14

Replies:

I can use iText to digitally sign a document – ONCE.

 

IF I try to use iText to digitally sign a document for the 2nd time, it breaks the first signature:

   Unexpected byte range values defining scope of signed data.

   Details: byte range of signature is invalid.

 

An obvious reason is the fact that iText inserts the signature at the beginning of the file, hence the existing signature is shifted down – and it’s ranges become invalid. And because ranges are part of the signature digest, they can not be changed (fixed).

 

Is there some way to tell iText to physically place the signature at the END of the file, pretty much like the Adobe Technical Note

“Digital Signatures in the PDF Language” suggests?

 

 

 

Martin Brunecky
Software Architect

RecordFusion

mbrunecky@att.net
AIM: mbrunecky

tel:
fax:

303-865-8847 x 225
303-865-8846

 

Add me to your address book...

Want a signature like this?

 


Attachment: cid:image001.gif@01C7AEAC.B45BC6F0

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.