Hi everybody,
I'm facing the following issue, maybe someone can help me.
I'm converting html to docx. In the Html i have some images e.g <img src="image1.jpg" width="350" height="400" ..>
The conversion is successful in general but images get scaled up in the generated docx file.
I converted the width and height in pixels from the <img ... to cm, to compare them with the height and width in cm in the word file(The measures are bigger.). It seems docx4j is not converting properly. Or i need to add sth?
Im using :
wordMLPackage.getMainDocumentPart().getContent().addAll(XHTMLImporter.convert(value, "file:/"+path.toString()+"/"+documentId));
Please, i would appreciate your help!
Thanks in advanced!