I’m looking for a way to programmatically flatten an XFA file. iText has some classes in it’s XFAWorker module that can supposedly do this, but it’s an extra library that I don’t think is included by default in TM.
Has anybody used this, or alternatively, is there some other way to flatten the file?
Yes, you are correct on all fronts.
The iText solution is a paid solution, although much more affordable than Adobe's LiveCycle solutions, and it seems to work quite well with many XFA forms.
However, it has some difficulties with some of the more complex forms that we generate with Composer, and we're actually in the process of working with iText to resolve these issues.
I have not come across any other technology that can deal with XFA.
Please contact me directly as I'd like to understand your use-case.