You must call PdfStamper.setEncryption() if you want the signature to be encrypted.
----- Original Message ----- From: "Keith Tang" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, August 12, 2005 9:48 AM Subject: [iText-questions] Can Signature & Encryption exist together? > Hi, > > > > I'm currently creating a PDF file using jasper report and after creating a > simple pdf document, I try writing some java code using ITEXT to add in some > PDF scripting and also encrypt the document using PDF own 128-bit > encryption. Up until this part, the document work perfectly fine and > whenever I open the PDF doc that I have created, it prompts me for a user > password. > > > > The problem started here when I used ITEXT to add in the signature with the > certificate I have created into the encrypted PDF doc I have created > earlier. It seems that when I open the PDF document this time, it doesn't > prompt for user password but it has my signature in it. > > > > Then I try to redesign the entire thing by adding the signature first and > then encrypt the entire doc. However, this time, when I open my PDF > document, it did prompt me for a user password but this time, my digital > signature wasn't in the document. > > > > Anyway, I just want to clarify, is ITEXT only provide one function only > (either signature or encrypted) or I'm doing some major error in my coding? > Is there a solution that I can include both signature and encrypted in my > document on the same time? > > > > Thank you > > > > Keith > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
