there is image alignment issue while converting html to docx using aspose.words in java .
Version : 22.11
plat form: java
HTML file and converted docx file enclosed here : html.zip (8.4 KB)
Problem is image not align middle with line text. HTML code working properly on browser. converted word its aligned at bottom of line height. .
HTML Screen short :
Docx Screen short :
Code :
Document convDoc;
try {
convDoc = new Document(htmlFile.getAbsolutePath());
convDoc.save( new FileOutputStream(docxfile), SaveFormat.DOCX);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Please help us to resolve this issue.
From
Nitin Chopkar