Hello,
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);
fileW.Write(System.Text.Encoding.UTF8.GetString(saveStream.ToArray()));
fileW.Close();
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.