Mustafa Incel wrote: > Hi, > > If I encrypt the pdf file using the following code it works, the form doesn't > allow me to fill the form. This is GOOD. > > stamper.setEncryption(null, null, PdfWriter.AllowFillIn, > PdfWriter.ENCRYPTION_RC4_40);
Read page 93 of the book: AllowFillIn will only have effect when using 128 bit encryption. > But if use > > stamper.setEncryption(null, null, PdfWriter.AllowFillIn, > PdfWriter.ENCRYPTION_RC4_128); > > I doesn't seem to work. What could be the reason? If you set the privileges to AllowFillIn, you ALLOW FILL IN. Reading your mail, I assume you're looking for a way to DISALLOW FILL IN. You should replace PdfWriter.AllowFillIn with 0. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
