> I know, but I meant that you could do that before step 1
> in your workflow, and then load the form into Acrobat to
> Reader Enable it.
> Please try it and let me know if it works for you.
> It saves you the manual labor recreating the fields
> one by one (which is a pain, I know).

Yes, yes, and triple yes!!!  Right before I refreshed this
thread and read this response, I saw a response from
Leonard Rosenthol on Adobe's Acrobat Developers
SDK user forum, who suggested that I use the Java API to remove
the XFA.  I had tried this right before the setField calls to no
avail... ...but then it dawned on me (I failed to understand your 
earlier post correctly) that I could do this *beforehand*, to the
"template" itself, as a one-shot deal!  I just tested it (exactly
as you described above), and it's perfect!
So to summarize the solution:

 1. Develop the (static) XFA form to your heart's content in LiveCycle
 2. Run the RemoveXfa code on this "template" form
 3. Open the modified "template" form in Acrobat, and enable user rights
 4. Use this user-enabled "template" form (now an AcroForm only) to read-in and
create pre-filled form instances (remembering to set append=true in the
PDFStamper constructor).

The only additional tweak might be to adjust some of the formating in step 3 (a
few things appear to be slightly offline after XFA removal), but at first
glance, the scope of these edits appears to be very minor
(certainly nothing approaching re-creating things from scratch with the Acrobat
Form tools).

Fantastico!  As an added bonus, I can tell you from my google-travels in these
past few weeks that this simple RemoveXfa code solves a recurring question on
several Adobe forums: i.e., how to convert an XFA form to an AcroForm?  The
answer is iText.

The ice-cream is yours! :)

Happy Regards,
-Peter Demling
 Lexington, MA


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to