Sérgio Oliveira wrote:
> Hi,
> 
> Is it possible to change/set the permissions of a pdf file using iText? 

http://itext.ugent.be/library/api/com/lowagie/text/pdf/PdfWriter.html#setEncryption(boolean,%20java.lang.String,%20java.lang.String,%20int)

> What I want is to set the permissions not to print in a existing pdf 
> (well, it doenst´matter if I will need to copy it to another document 
> created with writer).

It can be done directly in PdfWriter with setEncryption.
Or it can be done afterwards with PdfStamper:
http://itextdocs.lowagie.com/tutorial/general/copystamp/#pdfstamper

br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to