Hello all,
I've been using iText for a while, and now I need to implement a
2-step signing process which is similar to signing using a smart card.
The book iText in Action (second edition) mentions that there is a way
to avoid keeping the PdfStamper open throughout the signing process
(note at the end of section 12.4.5), but I couldn't figure out how to
do such a thing.

I've tried creating the following process:
1. Do the normal signing stuff, up to the point where the hash of the
contents to be signed is generated (right after the preClose);
2. Sign the hash (using BC);
3. Repeat the first step (open pdf, do stuffs, preClose);
4. Insert signed hash from step 2 (which is the hash from step 1).
But this didn't work out. Adobe Reader says the document was changed.

Is this approach wrong? How could I accomplish this?

TIA,
--
Khristian Alexander Schönrock

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to