Dear Aspose support,
when opening the result HTML of a conversion of an RTF document with Aspose.Word browsers like Chrome or Firefox don’t have any issues, but Internet Explorer 11 (version 11.0.9600.18665) running on Windows 7 does not correctly display the Symbol fonts. you can see the result as screenshot ‘ie11_result.PNG’.
There is also an error in the developer console (see the attached png screenshot ‘ie_console_error.PNG’), that does not appear in the other browsers and could be related to the issue.
As soon as I change the special UTF-8 characters for the greek symbols to latin characters, the result is displayed correctly.
I zipped the input RTF and the resulting HTML and attached them as ‘Math_equation_problem.zip’.
ie_console_error.PNG (8.5 KB)
Math_equation_problem.zip (90.8 KB)
ie11_result.PNG (30.9 KB)
The Aspose API we are using: Aspose-Words for Java 17.5
Code example (very straight forward):
@Override public void convertToHtml(InputStream inputStream, OutputStream outputStream) { try { Document doc = new Document(inputStream); doc.save(outputStream, saveOptions); } catch (Exception e) { LOG.error("Convert to html failed with exception", e.getMessage()); throw new ConversionException("Convert to html failed", e); } }
and
public SaveOptions createSaveOptions() { HtmlFixedSaveOptions options = new HtmlFixedSaveOptions(); options.setExportEmbeddedImages(true); options.setExportEmbeddedCss(true); options.setExportEmbeddedFonts(true); options.setExportEmbeddedSvg(true); return options; }
Kind regards,
Stefan Raubal