XML error on PDF.BindXML

Hi there

I have inserted an Image into a Word Document using Aspose.Words.Builder.InsertImage

When converting the resultant document to PDF using PDF.BindXml(xmldoc, null)

I am getting the following error: "Unknown Attribute in Image Element. The Attribute name is FixHeight."

the resultant xml is:

<Image File="C:\DOCUME~1\HONDA\ASPNET\LOCALS~1\Temp\Aspose.Words.b51914fd-6a33-4340-a1ae-195ad8201c87.001.jpeg" Type="jpeg" FixWidth="220.5" FixHeight="220.5" />

The word document views ok by the way.

Cheers and thanks for your help

Hi JC1,

The FixHeight is not supported by the older version. Please update to the latest version of Aspose.Pdf and try again.

Best regards,

aah, now there mght be a problem there. Whilst we are on support for Aspose.Words, Aspose.Chart & Aspose.Spellcheck our support for Aspose.PDF has expired so I don't think I will be able to upgrade to a version released since May when the PDF support expired Sad [:(]

I'll just have to do this:

string xml = xmldoc.InnerXml;

xml = xml.Replace("FixWidth","Width");

xml = xml.Replace("FixHeight", "Height");

xmldoc.LoadXml(xml);

Cheers james