I'm modifying an existing PDF, setting the encryption, and adding fields. After spending over an hour debugging why when I set the encryption the fields would disappear, I realized it's because the permissions I'm setting on the PDF doesn't allow the modification of annotations. What I don't understand is how setting the encryption level would effect it since it's in the same PdfStamper "instance". First of all, I'm setting the encryption right before adding the fields so PdfStamper should know I have have permissions to add it, even though the encryption says otherwise.
Is there a way for me to add fields AND set the encryption where other users cannot modify the annotations AFTER I've saved the PDF without the owner password? It looks like I'm going to have to save the PDF without encryption, then initialize a new PdfReader and PdfStamper just to set the encryption afterwards. Is there a reason for this? Thanks in advanced, Lloyd -- View this message in context: http://old.nabble.com/Encrypting-and-editing-with-PdfStamper-tp27026774p27026774.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/