So what you want to do isn't possible with PDF - using iText or anything else...
The first part of your requirements is not a big deal - you can sign any data
(be it a PDF or other) all you'd like and store off the hash and the certs
wherever...
The problem is that for a signed PDF, you can only have a single signature over
the same byte range/hash BUT you (may) have multiple ones. This type of
workflow is called a "parallel signature workflow" (as opposed to a serial
signature workflow) and isn't supported by PDF.
Leonard
From: Gonçalo Almeida [mailto:[email protected]]
Sent: Thursday, January 08, 2009 6:45 AM
To: [email protected]
Subject: [iText-questions] PDF Digital Signature - PKCS#7
Hello all
I have a question that I couldn't manage to find in all the foruns I searched.
What I want to do is to digitally sign a certain PDF (i.e. with a smartcard)
and store the signature bytes and user certificate in a separete place (for
instance in the file system).
It will not produce a signed PDF, as I want it to remain intact.
So, my idea was to allow users to digitally sign that document over and over
again and in the end gather all signatures ans certificates and produce a
signed PDF.
Is this possible with iText? If so, is there a snippet code that can use?
Thank you in advance for your answers.
--
Best Regards,
Gonçalo Almeida
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
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