z080236, first of all, you seem not to have subscribed to the mailing list. Nabble meanwhile makes quite an effort to tell users that that is necessary. Thus, please subscribe.
z080236 wrote > If I do encrypt first, then sign , I gwt Exception:Bad User Password > > if i do sign then password protect, the signature will be invalid. > > can't I use PdfStamper stamper= PdfStamper.createSignature > then use stamper.setEncryption ? When you encrypt an already signed document, you change the signed content (by encrypting it) and, thus, invalidate the signature. Concerning your other options you unfortunately did not provide enough code to properly be adviced on how to change it to get you going. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Sign-and-Password-Protect-same-file-using-PDF-tp4658244p4658249.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php