Hi Gurus,

We are using the following code to disable Print option in PDF. Works really
well.

    PdfReader reader = new PdfReader("my-old-file.pdf");
    PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream("my-new-file.pdf"));
    stamper.setEncryption("my-owner-password".getBytes(),
"my-user-password".getBytes(),
    PdfWriter.AllowCopy, PdfWriter.STRENGTH40BITS);
    stamper.close();

Everything was hunky dory till yesterday. We decided to update PDF Reader
version to 9.3 from version 8.2 The print option is not disabled anymore!
Looks like this code only works if we have Adobe Acrobat Reader 8 installed.
For other versions, it does not disable the copy or print buttons.

Please help.
Thanks

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/iText-Java-disable-print-pdf-tp2258355p2258355.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to