Hi,
I am facing exactly the same problem. Here is my code:
FileStream inputStream = new FileStream(this.textBox1.Text, FileMode.Open);
try
{
Stream outputStream = new MemoryStream();
AsposeUtils myAsposeUtil = new AsposeUtils();
myAsposeUtil.exportFormData(inputStream, outputStream);
outputStream.Position = 0;
}
catch (System.Exception ee)
{
Console.WriteLine(ee.Message);
}
While AsposeUtils is defined as:
public class AsposeUtils
{
public void exportFormData(Stream inStream, Stream outStream)
{
//Assign an input PDF document whose contents are needed to export
Aspose.Pdf.Kit.Form form = new Aspose.Pdf.Kit.Form(inStream);
//Export the values of all PDF form fields to the XML data file
form.ExportXml(outStream);
}
}The code throws an ObjectDisposedException.
Is this a problem of my code or of Pdf.Kit.Form.ExportXml? Please help.
UAE