Stephan.Portmann wrote: > Hi Bruno, > > i was able to figure out how to make the checkbox printable. > > There is yet another questions: How can i change the fontsize of a > comboBox formField? > > PdfFormField radio = PdfFormField.createCombo(_writer, true, options, 0); > > For a normal textField, there is the following method: > TextField tf = new TextField(_writer, position, _fieldName); > tf.setFontSize(10);
Please compare the examples that can be found in the book. On page 486 a ComboBox is created using PdfFormField.createCombo(). This means you have to set every property at a rather low level. On page 487 a ComboBox is created using the TextField class. However, instead of using getTextField(), getComboField() is used. That's a lot easier than having to create the appearance of the PdfFormField yourself. I don't say it's impossible to do it that way, but it's hard way, and I can't explain it in a short mail. By the way: why did you mail me personally? It is not advised to mail developers personally. For instance: all the mails sent to me last week remained unanswered (including your initial question) because I was at JavaPolis. It's better to post questions on the mailing list. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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/
