Op 16/08/2012 13:04, John Renfrew schreef:
I have an XFA form (from someone else)
It is set to default off, and the bindings are 1 for on and 0 for off,
and appears to be a regular checkbox field in LiveCycle
If I do form.getAppearanceStates(field) it just returns "1"
If I do form.setAppearance( field, "1") nothing is set.
Let's assume that setAppearance() is a typo and that you really meant to
write setField(). In any case: You're using methods that are meant for
AcroForm fields on an XFA form. That's not going to work. Forget all you
know about AcroForm-related methods, and manipulate the form on the XFA
level.
Do you need to flatten the form? Test XFA Worker online (XFA Worker is a
closed source product).
Do you want the form to remain interactive? Filling out an XFA form is
done by injecting XML, not by using setField() methods.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php