Free Support Forum -

Problems in converting html to rtf


I have used Aspose product for a while and I am really pleased, but recently I experienced some problems when trying to convert html to rtf.

I hope you will be able to help me to figure it out.

My html file looks like this:

23 <- 37 <- 71 <- 72

When I convert it to rtf all I get is: 23

Instead of getting: 23 <- 37 <- 71 <- 72

It seems that somehow when it reaches the first "<-" it stops, and doesn't move on to the next character.

The code I use is the following:

Stream stream = File.OpenRead(@"C:\HtmlContent.html");

Aspose.Words.Document doc = new Aspose.Words.Document(stream, new LoadOptions(){ LoadFormat = Aspose.Words.LoadFormat.Html});

MemoryStream saveStream = new MemoryStream();

doc.Save(saveStream , Aspose.Words.SaveFormat.Rtf);

StreamWriter fileW = new StreamWriter(@"C:\RtfContent.rtf", false);


when I open the file RtfContent.rtf all I see is "23" instead of "23 <- 37 <- 71 <- 72".

Do you have any ideas why this is happening?

Thank you in advance for your help.

Hi Yaniv,

Thanks for reporting this issue to us.

While using the latest version of Aspose.Words i.e. 11.3.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The issue ID is WORDSNET-6395. Your request has also been linked to this issue and you will be notified as soon as it is resolved.

Sorry for the inconvenience.

Best Regards,

Thank you for the quick response.

The issues you have found earlier (filed as WORDSNET-6395) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.