posted 14 years ago
hello friend ,
i had written a code to digitally sign a pdf document using itext jar. Once digitally signed ,signature is validated and present in all the pdf pages.
now thing is i am password protecting the pdf in which input i am giving it as signed pdf document ... once i open with the password ,signature is becoming invalid . I think since its getting protected its not able to find the PKC and keystore where i have placed it in the folder where my program is written .
Please could anyone help me out .
-->PdfEncryptor.encrypt(reader,new FileOutputStream("encrypted.pdf"),"Hello".getBytes(),"World".getBytes(),PdfWriter.AllowPrinting | PdfWriter.AllowCopy,false);