Hi,
I tried Aspose.Words for java 11.3.0.
I tried converting the attached word file(.docx fromat) to a HTML.
I noticed that one of the .png images was blurred(first image).It was nice in the version that we are using.
Please verify the same as we are upgrading to the latest version.
The original docx and the snapshot are attached. I used the below code
public static void main(String[] args){
String srcDir = “D:\Aspose_Latest\”;
String destDir = “D:\Aspose_Latest\Aspose_Output\”;
System.out.println(“Enter the file along with extension to be converted”);
String fileName="";
InputStreamReader name = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(name);
try {
fileName = in.readLine();
Document doc = new Document(srcDir + fileName);
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.setAllowNegativeLeftIndent(true);
saveOptions.setExportXhtmlTransitional(true);
saveOptions.setExportDocumentProperties(false);
saveOptions.setScaleImageToShapeSize(true);
saveOptions.setCssStyleSheetType(CssStyleSheetType.INLINE);
saveOptions.setExportMetafileAsRaster(false);
saveOptions.setExportHeadersFootersMode(ExportHeadersFootersMode.PER_SECTION);
saveOptions.setExportTextInputFormFieldAsText(true);
saveOptions.setPrettyFormat(true);
doc.setShadeFormData(false);
doc.save(destDir + fileName+ “.html”, saveOptions);
System.out.println(“Conversion Successfull”);
} catch (Exception e) {
e.printStackTrace();
}
}