You should use TextField otherwise the appearances won't be created and the field will fail in older Acrobat versions and won't flatten.
Paulo ----- Original Message ----- From: "不酷的狗" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, June 06, 2007 4:08 AM Subject: [iText-questions] Questions about changeing font size ofFormTextField and PdfStamper.setFormFlattening(true) > i'm newbie. > > recently i found some questions while using it in my project, i didn't > known what can i do on them, i am eager to your help > 1. i created a ComboField using codes below: > > PdfFormField field = PdfFormField.createCombo(stamper.getWriter(), true, > opts, 0); > field.setFieldName(fieldname); > field.setValueAsString(defval); > field.setWidget(position, PdfName.FIELDS); > stamper.addAnnotation(field,1); > > > but i found i can not change it's font size, i can't find the method such > as > setFontSize(12) and so on, how to change it? > > 2. i was using "stamper.setFormFlattening(true)" to remove textfield > while > remaining the text in it, but i found it was not worked in > ComboField which was created by above code because the text disappeared > also > . how can i remove the combofield while remain the text? > > any help will be appreciated . sorry for my bad english , it's my favor to > get your advice in everything including grammer > > -- > uncooldog ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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/
