Is there a corresponding getFieldProperty?

I would like to find out the font size of all the fields in a library of
PDF's


Bruno Lowagie (iText) wrote:
> 
> 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/changing-the-property-of-the-text-field-tf4051908.html#a12414299
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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/

Reply via email to