Hi,

I am reading the form fields from the PDF using Acrofields. I would like to get 
the value and font size of the Text fields. I am getting the value of using 
form.getField(key). How do I get the fontsize of the text field?

Your inputs will be highly appreciated.

Coder Snippet::

PdfReader reader = new PdfReader("c:\\register_form2.pdf");
AcroFields form = reader.getAcroFields();
HashMap fields = form.getFields();
String key;
for (Iterator i = fields.keySet().iterator(); i.hasNext();)
{
     key = (String) i.next();
     switch (form.getFieldType(key))
    {
      case AcroFields.FIELD_TYPE_TEXT:
           System.out.println("Text");
           System.out.println("Value is" + form.getField(key));
           break;
      default:
           System.out.println("othes");
   }
}

With thanks and regards,
S.K.Ramachandran

******************************************************************************************************************************
"This message and any attachments are solely for the intended recipient and may 
contain Birlasoft confidential or privileged information. If you are not the 
intended recipient,any disclosure,copying, use, or distribution of the 
information included in this message and any attachments is 
prohibited. If you have received this communication in error, please notify us 
by reply e-mail([email protected]) immediately and permanently delete 
this message and any attachments. Thank you."
******************************************************************************************************************************
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to