Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java program to password protect a signed pdf file

 
pavithra murthy
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friend ,

i have written a java code for protecting and digitally signing . but i am giving one pdf file as input and the protected pdf as output using jpdfsecure.jar in first try catch block ....in the second try catch block digital signing of pdf using itext.jar .

but after protecting the pdf and that pretected pdf is input for digitally signing code

PdfReader reader = new PdfReader("ch01out.pdf");
int nomPage = reader.getNumberOfPages();
System.out.println("nomPage: "+nomPage);

at this time if the pdf contains 30 pages ,,,the number of pages coming is 10 pages .please could anyone help me out

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic