Hi Aspose team,
I am using Aspose Word 17.2.0 to convert a Word file to a HTML file.
As a result, all embedded images will be wrong.
Here is the code I'm using:
public void html() throws Exception {
long start = System.currentTimeMillis();
createWordLicense("src/test/config/etc/aspose.lic");
Document document = new Document(
"custom/input/docx/圖片+文字.docx");
HtmlSaveOptions op = new HtmlSaveOptions();
op.setExportTextInputFormFieldAsText(false);
op.setExportTocPageNumbers(true);
op.setExportPageSetup(true);
op.setExportDocumentProperties(true);
op.setExportRelativeFontSize(false);
op.setExportHeadersFootersMode(ExportHeadersFootersMode.FIRST_PAGE_HEADER_FOOTER_PER_SECTION);
op.setImagesFolder("custom/output/docx/aspose");
OutputStream out = new FileOutputStream(new File("custom/output/docx/Resume.html"));
document.save(out, op);
}
And I also uploaded the origin Word file.
Please help me figure it out what happend, thanks.