• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

iText: password protect a signed pdf file

Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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);
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic