johnnyForums wrote:
> var stamper = new PdfStamper(reader, outputPdfStream);

Changes the document.
The document is no longer the document that was signed.
Therefore, the signature is invalidated.
The person who signed the document may not approve of the changes.

> to
> 
> var stamper = new PdfStamper(reader, outputPdfStream,'1',true);
> and the signatures were not corrupt.

This keeps the original bytes intact and appends new bytes.
You see that the document has two revisions.
End users can distinguish what was signed and what was added
after the document was signed.

> I'm just trying to figure out why they were not corrupted with this second
> new line.  By corrupt I just mean invalid.  I can still see them.

That's a very elementary question.
You didn't get the concept of signatures.
Did you read the book?
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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

Reply via email to