Yeah, that form has a bunch of special requirements that need to be handled as 
part of the filling process.  It is NOT designed to just have the XML "swapped 
out" as you are trying to do.

You will need to study the XFA specification and then apply that knowledge to 
parsing the XFA in that PDF and following the rules & requirements necessary.  
There is no shortcut on this particular form due to the way it was designed.

The alternative is Adobe LiveCycle ES...

Leonard

-----Original Message-----
From: 1T3XT info [mailto:[email protected]] 
Sent: Wednesday, February 03, 2010 3:25 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Question regarding usage rights after importing 
data into XFA

Sethuraman Ramasubramanian wrote:
> I had a look at the example code you pointed me to. The example deals 
> with populating fields like document[0]... I don't have access to the 
> internals of the pdf. I did not design it. So I cant access fields 
> that way. Or atleast I dont know how to. I have access to the xml 
> though. Can we import data with the xml like adobe reader?

It works for me with "normal" forms (see attachment).
I tried it with your form.

iText doesn't change the original PDF (if I remove everything after the second 
last %EOF, I get the original PDF), but the document shows the behavior you're 
describing.

I guess it has something to do with the way the form is made (I have to click 
away some warnings when I open the original form). I don't think we can help 
you any further.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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