On Mon, Mar 28, 2011 at 12:44 PM, Mark Storer <[email protected]> wrote: > Ah. You have an XFA based form, and are using AcroForm tech to address it. > Don't do that.
Alright, I suppose that's good to know (I do see that now, and also see it documented that using the high-level AcroForms API *usually* works, but not always, and that SetListSelection never will). So, it took a bit of trial and error, but I successfully retrieved the XFA xml, modified the value of that list field, then put it back, and the new value showed up in the pdf. But in the case of an arbitrary pdf where I don't have previous knowledge of what the underlying xml looks like... this might also be a dumb question, but I don't suppose there's any way to find the correct value to modify in the xml (if multiple fields share the same human-readable name) based on the information about the fields returned from PdfReader.AcroFields.Fields? Can I even assume that PdfReader.AcroFields.Fields will always *have* information about the number and names of fields in an XFA-based form, or should I be looking elsewhere in that case? (It's always seemed to work so far in abstracting whether the input was xfa-based or not, but possibly we were just lucky?) But anyway, thanks again for pointing me in the right direction. -Adam ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ iText-questions mailing list [email protected] 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
