You need to set the necessary security permission to allow that. Have a look at the PdfEncryptor class.
- [iText-questions] Comments Lars Hällerman
- [iText-questions] Comments Lars Hällerman
- Re: [iText-questions] Comments Vineet Reynolds
- RE: [iText-questions] Comments Paulo Soares