We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

XML import on repeating subform or tables

Hi,

Does this library support importing XML data into an
AcroForms PDF with repeating subforms (such that repeating nodes in the
XML file will be duplicated in the final PDF).

For example if you
have a form that is showing master and detail data (like an invoice
with multiple products and prices), with the detail data in a repeating
subform, will the XML import properly duplicate the subform and import
all of the product fields on multiple lines?

Thanks.

Hi tharage,


Thanks for your inquiry. Can you please share your sample PDF document and XML data. So we will look into it and guide you accordingly.

Best Regards,

Please find attached pdf template and xml data

Hi Tharage,


Sorry for the delayed response. We are looking into your requirements. It would help us to investigate if you please share a desired output document also here.


Best Regards,

Please find attached desired output document

Hi Tharage,


Thanks for providing additional information. You can import XML into PDF forms using Aspose.Pdf.Kit for Java. Please check following documentation link for the purpose. Moreover, you can also perform same function with Aspose.Pdf for Java (.NET autoported version) but unfortunately its not working at the moment. So for the sake of correction I’ve also logged an issue PDFNEWJAVA-33507 in our issue tracking system.


Please feel free to contact us for any further assistance.

Best Regards,

Hi,

How long do you thing its gonna take to be able to achieve what i am trying to do .

Hi Tharage,


Thanks for your inquiry. In respect to issue logged for correction in Aspose.Pdf for Java, we will share an ETA with you as soon as our development team completes the issue analysis.

Moreover as workaround you can use Aspose.Pdf.Kit for java as suggested above. Here is the sample code snippet and output is enclosed here.

// Assign input and output PDF documents
com.aspose.pdf.kit.Form form = new com.aspose.pdf.kit.Form(myDir + “DynamicTable.pdf”, myDir + “Form_ImportXml.pdf”);

// Select a xml file with contents of the form
String xmlFile = myDir + “Billing_Acroform.xml”;

// Import the values from the XML to the output PDF form
form.importXml(xmlFile);

// save the output PDF document and release the object
form.close();

Thanks for your patience and cooperation.

Best Regards,

The issues you have found earlier (filed as PDFNEWJAVA-33507) have been fixed in Aspose.Pdf for Java 9.7.1.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.