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

Reply via email to