Boutros wrote:
> 
> Hello Paulo:
> 
> I was trying the code in in_action.chapter03.HelloWorldEncrypted
> 
> writer.setEncryption("Hello".getBytes(), "World".getBytes(),
>     PdfWriter.ALLOW_COPY | PdfWriter.ALLOW_PRINTING, 
> PdfWriter.STANDARD_ENCRYPTION_128);
> 
> and I thought it will take away the button for printing
> 
> it gave a password protected file, (which is not what I want to have 
> exactly).

If you want to disallow printing, you DO want to encrypt your PDF.
But maybe you should pass null as the user password; that way,
the end user doesn't have to enter a password.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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