Victor, victorqedu wrote > The PDF has XFA forms on it. > After I sign the PDF with > pw.setEncryption(null, OWNER, PdfWriter.ALLOW_PRINTING, > PdfWriter.STANDARD_ENCRYPTION_128); > the page numbers that are embeded in the PDF are no longer displayed. > > The PDF is signed because it must not be editable. > Is there a special combination of rights that will make the PDF uneditable > and will display the page numbers? > > If I add mode rights: > pw.setEncryption(null, OWNER, PdfWriter.ALLOW_PRINTING | > PdfWriter.ALLOW_FILL_IN, PdfWriter.STANDARD_ENCRYPTION_128); > then the pages are displayed, but the problem is that the XFA forms can be > changed.
You do not seem to have registered with the mailing list. Please do this to be read by more iText users and developers. First of all, you do not SIGN, you encrypt, which is quite different. Secondly, for problems like this it is very importent to supply a sample PDF. Here we can only guess. I would assume that page numbers in the document are generated dynamically in a way very much akin to filling in form fields. Thus, by forbidding form field fill-ins you also forbid page number generation. This merely is an assumption, though. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Lost-page-numbers-after-setEncryption-tp4656347p4656355.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ iText-questions mailing list [email protected] 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
