Free Support Forum - aspose.com

Xhtml to rtf or html renderring is not same as browser

Hello Support,

I was trying to convert attached xhtml to rtf as well html.

Issue is that alternate text is also coming in conversion whereas original file render in browser works correctly.

Refer attached file.Sample.zip (16.9 KB)

Code is simple
void Button36_Click(object sender, EventArgs e)
{
LoadOptions lo=new LoadOptions();
lo.LoadFormat=LoadFormat.Html;
Document doc = new Document(“imagedata.xhtml”,lo);

		doc.Save("temp.rtf",SaveFormat.Rtf);
		doc.Save("temphtml.htm",SaveFormat.Html);
	}

How to resolve issue?

Thanks in advance.

Regards
Mandar

@mandar_limaye,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16978. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-16978) have been fixed in this Aspose.Words for .NET 18.10 update and this Aspose.Words for Java 18.10 update.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan