plutext / docx4j-ImportXHTML

Converts XHTML to OpenXML WordML (docx) using docx4j
136 stars 125 forks source link

fix dots to twip converting #80

Closed isedoykin closed 2 years ago

isedoykin commented 2 years ago

fix the following issues: 1) dots to twip conversation 2) OutOfMemoryError (plutext#55)

isedoykin commented 2 years ago

Hi @plutext, I have found that converting units in CSS for image are not correct in docx.

For example, style for images: height: 100mm; width: 100mm; In the resulting docx, the image has about 170mm width and height.

This MR fixes the issue. Could you please merge the MR?