justin wrote:
> 1. How do I know if I have an XFA form or an AcroForm just by looking 
> at the document in adobe?
Create an instance of PdfReader with iText, then get an AcroFields instance:
reader.getAcroFields(); the ask the form if there's an XFA form present:
form.getXfa().isXfaPresent().
If this returns true: you'll be able to fill in the fields with iText, 
but that's it.
If this returns false: you'll be able to do all sorts of things with the 
fields.
> 2. Once I determine  part  one,  how do I use the itext API call to
> populate the form , after all I did not create it so I don't know the
> name or identifier of the particular form object, i.e. a text box.  (I
> looked at the examples on the site specificaly the register.java, but
> all of them assume that you know the name of the particular object
> such as "name" "address", etc).
>   
That's explained in the book 'iText in Action', and elsewhere too.
The AcroFields object can give you information about the fields
(names, coordinates,...).
> Maybe there is a tool that let's you look at the individual objects in
> a pdf form or such, but I am not sure .
>   
As a matter of fact, I'm currently working on such a tool; it's in SVN 
at SourceForge,
but it hasn't been officially released yet, so if you want to use it, 
you'll have to download
it and compile it yourself; also, it's a tool for people that know the 
PDF reference very
well: http://itexttoolbox.svn.sourceforge.net/viewvc/itexttoolbox/rups/src/

Please DO NOT mail me personally; use the mailing list instead (address 
in Cc:).
iText is free software; it doesn't come with free consultancy, except 
for the often
very good advice on the mailing list.
best regards,
Bruno

-------------------------------------------------------------------------
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