Hi there,
I'm having trouble converting a large word doc to PDF. When I run the code I get the error
Unknown sub element in Heading element. The element name is TextBorder.
I am using this code:
MemoryStream stream = new MemoryStream();
document.Save(stream, SaveFormat.FormatAsposePdf);
stream.Seek(0, SeekOrigin.Begin);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(stream);
Pdf pdf = new Pdf();
pdf.IsImagesInXmlDeleteNeeded = true;
pdf.BindXML(xmlDoc, null);
pdf.Save(fileWithPath);
The error occurs on the line
pdf.BindXML(xmlDoc, null);
I have attached the document.
Regards
Patrick