JC1
October 13, 2006, 8:46am
1
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,
JC1
October 16, 2006, 4:25am
3
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
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