George Steimer wrote:
> 1.       Is there a way to dynamically create a button on an XFA form 
> that submits the form data to a URL?

You need to extract the XML that defines the form from the PDF, change 
it, and then put it back.

> a.       I realize that the submitted data will probably not be in XFDF 
> format, but we can handle that on the server side if needed…

True: the Forms Data Format is AcroForm technology.

> b.      If I need to upgrade to a newer version of iText, that’s fine – 
> we’re on 2.0.8 right now.

There is no straightforward way to add a button, not in the old, not in 
the new version: You need to extract the XML that defines the form from 
the PDF, change it, and then put it back.

> 2.       Assuming #1 is possible, is there a way to know when we’re 
> stamping the PDF whether or not the form is an AcroForm or an XFA form?

You should distinguish between three types of forms:

1. AcroForm technology: doable
2. Hybrid: XFA + AcroForm: you could throw away the XFA and keep the 
AcroForm, that's doable.
3. XFA only: you need to manipulate the XML.

How to find out which form you have: see chapter 8 of the second edition 
of "iText in Action".
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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