You can use something like this: BaseFont bfont = BaseFont.createFont(BaseFont.Helvetica, BaseFont.CP1250, BaseFont.NOT_EMBADED); acroField.setFieldProperty("fieldName", "textfont", bfont, null);
This will set fon Helvetica on acroField named fieldName. Marco-141 wrote: > > precyz <PGawedzki <at> skandia.pl> writes: > >> >> >> You can always change font color in acro field useing >> >> acroField.setFieldProperty(fieldName, "textcolor", java.awt.Color.YELLOW, >> null); >> >> for example. > > only trasparent doesn't cover the text in under/over content. All other > colors > are a problem. > > I try to develope a work around... a trasform an acrofield (I know that > all > are read only) in a text with a rect. > > I now have got one problem: with the PdfName.DA I get "/Helv ecc.." but > when I > create a basefont I must specify BaseFont.Helvetica. There's a way to > transform "Helv" in "Helvetica"? > > Thanks! > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Do you like iText? > Buy the iText book: http://www.1t3xt.com/docs/book.php > Or leave a tip: https://tipit.to/itexttipjar > > -- View this message in context: http://www.nabble.com/Under-Over-content-and-acrofield-tp17888487p17973426.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar