Hello,
I'm evaluating your Pdf.Kit library for .NET, wanting to use the XML import functionality. I have, however run into some problems while trying to import the XML data.
I'm getting the following exception thrown in the call to ImportXml,
Unhandled Exception: The ']' character, hexadecimal value 0x5D, cannot be includ
ed in a name.
The code I'm using is pretty straight forward, I've basically just pulled the code from the example in your documentation.
Form form = new Form(@"C:\updated_IDS.pdf", @"C:\aspose.pdf");
using (FileStream xmlInputStream = new FileStream(@"c:\updated_IDS_data.xml", FileMode.Open))
{
form.ImportXml(xmlInputStream);
form.Save();
xmlInputStream.Close();
}
Why do I get this error? Is there anything to be done that can fix it? I have no control over the target pdf file.
Adobe Reader can import the file just fine. It's the content of the us-patent-cite that makes it crash. The Xml file is created with Aspose.Pdf.Kit:s ExportXml functionality from another copy of the same PDF file except it is filled with data.
I have attached the files to the post.
Yours sincerely,
Fredrik