Free Support Forum -

Word to PDF issues

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();


Pdf pdf = new Pdf();

pdf.IsImagesInXmlDeleteNeeded = true;

pdf.BindXML(xmlDoc, null);


The error occurs on the line

pdf.BindXML(xmlDoc, null);

I have attached the document.



Dear Patrick,

Thank you for considering Aspose.

Border for heading is not supported in Aspose.Pdf. I will try my best to support this before next Monday.

Cool, thanks a lot.

Please download the new hotfix 2.6.1.