@tahir.manzoor 哈喽,我这边也遇到此问题了,文档中存在TIF图片,转换后得html中丢失了,原文件如下1.docx (79.5 KB)
@alexey.noskov 我已经上传了文档,另外我附上设置参数得部分代码:
Document doc = null;
try
{
doc = new Document("1.docx");
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.setImagesFolder("images/");
htmlSaveOptions.setImageSavingCallback(new CustomImageSavingCallback());
htmlSaveOptions.setExportImagesAsBase64(false);
//htmlSaveOptions.setCssStyleSheetType(CssStyleSheetType.EXTERNAL);
htmlSaveOptions.setImageResolution(300);
htmlSaveOptions.setOfficeMathOutputMode(HtmlOfficeMathOutputMode.IMAGE);
htmlSaveOptions.setUseAntiAliasing(true);
htmlSaveOptions.setUseHighQualityRendering(true);
htmlSaveOptions.setEncoding(StandardCharsets.UTF_8);
htmlSaveOptions.setSaveFormat(com.aspose.words.SaveFormat.HTML);
htmlSaveOptions.setExportOriginalUrlForLinkedImages(true);
doc.save("1.html", htmlSaveOptions);
}
catch (Exception e)
{
e.printStackTrace();
}
@cuixiong
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSNET-26040
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.