Hi i am able to convert rtf to html,but some lines are getting overlapped,So anyone help me out.
And also i am getting this ‘xa0;’ things always,How can i remove this.
Hi i am able to convert rtf to html,but some lines are getting overlapped,So anyone help me out.
And also i am getting this ‘xa0;’ things always,How can i remove this.
Have you tried the latest version of Aspose.Words for .NET i.e. 19.10 on your end? In case the problem still remains, please ZIP and upload your input Word document and Aspose.Words generated HTML file showing the undesired behavior here for testing. We will then investigate the issue on our end and provide you more information.
Thanks for your reply.
I am using 14.2 vesrion.
this is moy code
Aspose.Words.Saving.HtmlSaveOptions saveOptions = new Aspose.Words.Saving.HtmlSaveOptions();
saveOptions.SaveFormat = Aspose.Words.SaveFormat.Html;
// saveOptions.Encoding = Encoding.UTF8;
saveOptions.PrettyFormat = true;
saveOptions.ImageSavingCallback = new HandleImageSaving();
//saveOptions.ExportImagesAsBase64 = true;
//saveOptions.exzpo = true;
using (MemoryStream htmlStream = new MemoryStream())
{
//saveOptions.ImageSavingCallback;
doc.Save(htmlStream, saveOptions);
// Read the HTML from the stream as plain text.
StringBuilder myHtml = new StringBuilder(Encoding.UTF8.GetString(htmlStream.ToArray()));
myHtml.Replace(" ", "");
myHtml.Replace("Evaluation Only. Created with Aspose.Words. Copyright 2003-2014 Aspose Pty Ltd.", "");
return myHtml.ToString();
}
To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.