Hi all, I have a problem with adding a PdfFormField to pages. The filed is added but is not visible while opening the page nor it is being printed. Here is the code for adding a field for each page of an existing pdf file:
for (int p = 1; p <= totalPages; p++) { field = PdfFormField.createTextField(stamper.getWriter(), false, false, 50); field.setWidget (new Rectangle(10, 600, 300, 630), null); field.setFieldName("Expiry_field_" + p); field.setFieldFlags(PdfAnnotation.FLAGS_PRINT); field.setValueAsString("Hello"); stamper.addAnnotation(field, p); } The field is displayed only when clicking on its position with the mouse. It is also not getting printed. I really hope you can help me, I'm struggling with this for a long time. Thanks, -- View this message in context: http://itext-general.2136553.n4.nabble.com/Problem-with-add-PdfFormField-and-print-tp4656919.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://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ 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