We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Emergency!Compatible for Browser!

As we know,svg is not compatible for ie8,but your api generate svg when converting files to html format.How to do??

Hi Xu,

Thanks for contacting support.

Can you please share some details regarding the file format which you are trying to convert to HTML format, so that we can answer accordingly.

BTW if you are converting PDF files to HTML format, you may consider rendering the images in PNG format. For further details, please visit PDF to HTML - Avoid Saving Images in SVG Format

Document document = new Document(“C:\Users\Lixp\Desktop\source.doc”);
HtmlFixedSaveOptions saveOptions = new HtmlFixedSaveOptions();
saveOptions.setPrettyFormat(true);
saveOptions.setExportEmbeddedCss(true);
saveOptions.setExportEmbeddedFonts(true);
saveOptions.setExportEmbeddedImages(true);
saveOptions.setExportEmbeddedSvg(true);
document.save(“C:\Users\Lixp\Desktop\target.html”, saveOptions);


target.html has svg in it.

Hi Xu,

You can convert your Office documents to PDF and then use Aspose.Pdf to convert SVGs to PNG as you can see at https://docs.aspose.com/pdf/java/convert-pdf-to-html/#convert-pdf-to-html---avoid-saving-images-in-svg-format

Best Regards,