This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Security and the fly likes java program to password protect a signed pdf file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "java program to password protect a signed pdf file " Watch "java program to password protect a signed pdf file " New topic
Author

java program to password protect a signed pdf file

pavithra murthy
Ranch Hand

Joined: Feb 06, 2009
Posts: 56
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java program to password protect a signed pdf file
 
Similar Threads
java program to password protect a signed pdf file using itext pdfstamper
java code for pswd protection+digital sign (for all pgs)
java program to add digital signature into a pdf file
iText: password protect a signed pdf file
java program to password protect a signed pdf file