XFA Forms

Hello,

can I fill XFA-Forms with XML data?


Hi,

Thanks for contacting support.

Please note you can use Aspose.Pdf for .NET to fill Acro-Forms with data from XML file. Please visit the following link for further information on Import Data from XML into a PDF File (Facades)

Please review the request for a temporary license for quote: 130312103417

I want to test to import and export XML into XDP forms.


Export works fine but import doesn’t work.

String pdfIn=“G:\test\form.pdf”;
String pdfOut=“G:\test\formOut.pdf”;
Form form = new Form(pdfIn,pdfOut);
// form.exportXml(“G:\test\Form_ExportXml.xml”);
form.importXml(new FileInputStream(“G:\test\import.xml”));
form.save();
form.close();

results in the following stacktrace

Exception in thread “main” java.lang.NullPointerException
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.importXml(Unknown Source)
at de.htsolutions.apose.Test.main(Test.java:20)

I want to test the export and impot. After testing successfully I can buy the licence.

Regards,
Christoph
Hi Christoph,

Many thanks for your request.

A 30 day evaluation licence has been sent to the email address associated with your user account. Please let me know if you have any questions or need further assistance.

I will transfer this post to the Aspose.Pdf.Kit forum and our support team will be glad to help with your technical query.

Kind regards,

George.

I want to test to import and export XML into XDP forms with JAVÁ not .NET!


Export works fine but import doesn’t work.

String pdfIn=“G:\test\form.pdf”;
String pdfOut=“G:\test\formOut.pdf”;
Form form = new Form(pdfIn,pdfOut);
// form.exportXml(“G:\test\Form_ExportXml.xml”);
form.importXml(new FileInputStream(“G:\test\import.xml”));
form.save();
form.close();

results in the following stacktrace

Exception in thread “main” java.lang.NullPointerException
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.a(Unknown Source)
at com.aspose.pdf.kit.Form.importXml(Unknown Source)
at de.htsolutions.apose.Test.main(Test.java:20)

I want to test the export and impot. After testing successfully I can buy the licence.

Regards,
Christoph

Hi Christoph,


Can you please share the resource files (XML and PDF form) so that we can test the scenario at our end. We are sorry for this inconvenience.

Hi


I send you a link to pdf as private message.

Regards,
Christoph

Hi Christoph,


I have managed to get the PDF form but I am afraid the XML file is missing. Can you please share the source XML so that we can test the scenario.

You can export the XML from the PDF. That’s the XML

Do you can help me?

Hi Christoph,


I am working over this query and will get back to you soon. We are sorry for this delay and inconvenience.

Hi Christoph,


Sorry for the delayed response. I’ve managed to reproduce the issue at my end and logged it as PDFKITJAVA-33300 in our issue tracking system for further investigation and resolution. We will keep you updated regarding issue status via this thread.


Sorry for the inconvenience faced.


Best Regards,

Do you resolve the problems?

I need an update. I have to buy the licence.


Regards,
Christoph

Hi Christoph,

Sorry for the inconvenience faced. I'm afraid, your reported issue is still not resolved. It's pending for analysis in the queue due to other priority tasks. However, I've requested our development team for ETA. As soon as I get a feedback I'll update you via this forum thread.

Thanks for your patience and cooperation.

Best Regards,

Do you solve the problem?

Hi Christoph,


Thanks for your patience.

Please note that recently we have published an autoported release of Aspose.Pdf for Java which provides the combined features of legacy Aspose.Pdf for Java and Aspose.Pdf.Kit for Java. So with this new release, you can create, as well as manipulate existing PDF files. When I have tried importing the data from XML file to PDF form, I did not notice any problem. I would recommend you to please try using the latest release of Aspose.Pdf for Java 4.0.0.


[Java]

String pdfIn=“c:/pdftest/formxmlexport.pdf”;<o:p></o:p>

String pdfOut="c:/pdftest/formxmlexportOut.pdf";

com.aspose.pdf.facades.Form form = new com.aspose.pdf.facades.Form(pdfIn,pdfOut);

//form.exportXml(myDir+"Form_ExportXml.xml");

form.importXfdf(new FileInputStream("c:/pdftest/Form_ExportXml.xml"));

//form.importXml(myDir+"Form_ExportXml.xml");

form.save();

form.close();


In case you still face the same issue or you have any further query, please feel free to contact.

The issues you have found earlier (filed as PDFKITJAVA-33300) have been fixed in Aspose.Pdf.Kit for Java 4.6.0.


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