java program to password protect a signed pdf file
posted 7 years ago
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();
at this time if the pdf contains 30 pages ,,,the number of pages coming is 10 pages .please could anyone help me out