This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iText: password protect a signed pdf file

 
pavithra murthy
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic