On 10/08/2011 22:45, Sanjeev Sharma wrote:
> I want to be able to add the Data Field (hidden) as above so that my PDF
> has a data field that I can set data and display.
I'm a little bit confused because you're mixing XFA and AcroForm technology.
I'm also not sure if you're talking about creating a form from scratch 
or changing an existing form.

I assume that:
- you want to create a form from scratch containing a hidden field.
- you want to change that form afterwards.

The question is:
- how do you create a hidden field?

I would use a text field and set its visibility to hidden.
I'm not 100% sure this is how it should be done,
but I've tried other things that didn't work,
and I've tried a hidden text box and I know it works.

By the way: the setVisibility() method is explained on p246.
You need TextField.HIDDEN as parameter.

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to