When I convert word to html,The image in word blurred

source_converted.zip (2.4 MB)

When I use HtmlSaveOptions , the image is blurred.

HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.setPrettyFormat(true);
htmlSaveOptions.setExportFontsAsBase64(true);
htmlSaveOptions.setExportImagesAsBase64(true);
htmlSaveOptions.setExportShapesAsSvg(true);
htmlSaveOptions.setUseHighQualityRendering(true);
htmlSaveOptions.setMemoryOptimization(true);

But when I use HtmlFixedSaveOptions, the image is clear.

HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
htmlFixedSaveOptions.setShowPageBorder(false);
htmlFixedSaveOptions.setPrettyFormat(true);
htmlFixedSaveOptions.setExportEmbeddedCss(true);
htmlFixedSaveOptions.setExportEmbeddedFonts(true);
htmlFixedSaveOptions.setExportEmbeddedImages(true);
htmlFixedSaveOptions.setExportEmbeddedSvg(true);
htmlFixedSaveOptions.setUseHighQualityRendering(true);
htmlFixedSaveOptions.setMemoryOptimization(true);

@huangwq Please try setting HtmlSaveOptions.ScaleImageToShapeSize to false:

HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.setPrettyFormat(true);
htmlSaveOptions.setExportFontsAsBase64(true);
htmlSaveOptions.setExportImagesAsBase64(true);
htmlSaveOptions.setExportShapesAsSvg(true);
htmlSaveOptions.setUseHighQualityRendering(true);
htmlSaveOptions.setMemoryOptimization(true);
htmlSaveOptions.setScaleImageToShapeSize(false);
1 Like

Thank you very much, the problem solved.

1 Like