dreamboy wrote:
> I have an existing pdf and I need to change the property of one text.
This is done with the method setFieldProperty.
This method is explained on p507-508 of 'iText in Action'.
> The
> text can only display 2 characters, ie, the "United States" is truncated
> into "Un". How to set the property of the text field to 15?
Assuming that 15 is the textsize, you'd need something like this:
form.setFieldProperty("myfield", "textsize", new Float(15), null);
(Where "myfield" is the name of the field of which you want to change
the property.)
> Also, is there a way to change the id of existing checkbox?
In this case you should make a new field that has the exact
same properties of the original field, then remove the original
field, and add the copy with addAnnotation().
br,
Bruno
-------------------------------------------------------------------------
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/