I have a pdf xfa and when importing data from an xml and saving it loses interactivity. All buttons are disabled and fields cannot be filled. Is there a solution for this or is there something I am doing wrong?
My code:
Preformatted text
Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form ();
form.BindPdf ("test.pdf");
// Open xml file.
System.IO.FileStream xmlInputStream = new FileStream ("data2.xml", FileMode.Open);
// Import data
form.ImportXml (xmlInputStream);
// Close file stream
xmlInputStream.Close ();
// Save updated document
form.Save ("test_out.pdf");`Preformatted text`