Hi,

I want to put some text in a box inside a pdf file.
I have tried with a TextField, but I cannot get rid of the blue backgroud
color and the black border with the hover effect.

My code is:

TextField tf = new TextField(stamp.getWriter(), new Rectangle(57, 711, 254,
766), "tf");
tf.setMaxCharacterLength(200);
tf.setOptions(TextField.COMB);
tf.setBorderWidth(0);
tf.setBackgroundColor(Color.WHITE);
tf.setBorderColor(Color.WHITE);
tf.setOptions(TextField.MULTILINE);
tf.setFont(bf);
tf.setFontSize(12);
tf.setText("a very long text");
stamp.addAnnotation(unternehmensDaten.getTextField(), 1);

how can I remove the undesired colors and settings? if there is another
possiblity I will be glad to know it.


-- 
View this message in context: 
http://www.nabble.com/text-in-a-box-tp23055291p23055291.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to