Hi Kenton, AcroForm.getXFA and AcroForm.setXfa at only return or set the XFA object within the PDF but do not deal with constructing or parsing it's content. Revision 1435039 in trunk added some basic XFA extraction. i.e. you can get the XFA content (template, data, ….) as a byte[] or w3c.document. The missing part is setting the content with new data. I'm currently working on a patch to add that but can't promise when this will be available. Take a look at PDFBOX-1492 for the extraction of XFA.
Kind regards Maruan Sahyoun Am 18.01.2013 um 06:49 schrieb kenton wu <[email protected]>: > Hi All, > > Is there any one who knows how to fill data into pdf xfa forms by PdfBox? > I only find two functions, AcroForm.getXFA() and AcroForm.setXFA(), but I > don't know how to do it, I wish there is an example or description about > it. > > Thank you! > > Best Regards, > > Kenton > -------------------------------------------------------------------------------------------------------------------------------------------- > Kenton Wu - KISTERS Shanghai Software Development Co., Ltd. - No. 450 Fushan > Rd. 9A - 200122 Shanghai - China > Phone: +86 21 68670119 -806 | E-Mail: [email protected] | WWW: > -------------------------------------------------------------------------------------------------------------------------------------------- > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) please > notify the sender immediately and destroy this e-mail. Any unauthorised > copying, disclosure or distribution of the material in this e-mail is > strictly forbidden.

