Export to XML File

Hi Ken/Adeel,

  1. When I tried to export the PDF file to XML file (XFA form created by Adobe LiveCycle Designer and which is having the header information) it is exporting the first page header information and it is not exporting the remaining pages header information. It is displaying the value field as null. Could you please clarify?
  2. When I tried to export to XML file it is doing in the following format:

name="form1[0].Page02[0].Table1[0].Row4[0].subjectID[0]">888

Is it possible to get the exported information with the correct Form, Page, Table and Row names? Then it would be easy for us to read the exported XML file for further process.

I have used the following code:

Form form = new Form(destinationPath);
System.IO.FileStream xmlOutputStream = new FileStream(xmlPathToImport, FileMode.Create);
form.ExportXml(xmlOutputStream);
xmlOutputStream.Close();

I was tried on the document which I attached for my query FieldFlag.READ_ONLY privilege for the field is not working. You can refer the same.

Thanks & Regards

Amar

Hi,

I have not been able to reproduce the error that you specify. Can you please explain your poblem in more detail. Also it would be helpful if you could provide the xml that you got.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

Dear Amar,

Thanks for considering Aspose.Pdf.Kit for C#!

The problem has been reproduced. The old version of Aspose.Pdf.Kit used some kind of "flat format" to present data, which is much different from the leveled structure used in XFA now. A good news is that we will provide support for this new feature. A hotfix will be released in about a week.

Best regards.

Hi, Amar

I am grad to inform you that the bug of importing xml/ exporting xml has been solved. A hotfix will be released soon. please notice our blog: https://blog.aspose.com/category/pdf/

Please download the dll in the this post File Format APIs for .NET Core, Java, Python, C++, Android | products.aspose.com
We will release the new hotfix in this week.

Best regards.