That's the right option for printing. What's the problem? > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of satish babu > Sent: Friday, November 11, 2005 12:32 PM > To: [email protected] > Subject: [iText-questions] PDF Encryption > > Hi!!! > Again we have got the pdf encryption problem. Still > we are getting the problem form users. Actually we > want to protect the pdf file that is not able to do > any operations apart from the printing. Previously the > user is taking the printout by updating the page or > copying the page to new pdf file by using some pdf > editers. > We want to protect the file form all operations. It > shuld not allow the page for any operations apart from > printing. > I think the Printing options is correct. Let me know > what might be the problem. > My code: > > String readFile = filepath1; > String writeFile = filepath2; > PdfReader reader = new PdfReader(readFile); > PdfEncryptor.encrypt(reader, new > FileOutputStream(writeFile),"".getBytes(),"master".getBytes(), > PdfWriter.AllowPrinting,true); > > > Thanks > KC > > > > __________________________________ > Start your day with Yahoo! - Make it your home page! > http://www.yahoo.com/r/hs > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App > Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions >
------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
