This problem does not occur in Aspose Words jdk16 13.7.0.0. We encountered it while upgrading to 13.10.0.0. and had to revert.
While importing HTML-Documents with multiple paragraphs (
) into an existing .docx the margings before and after the paragraph are set to 12 (which is too large).
This happens although no “margin-*”-Tag is set in HTML nor are the margins set in the docx template.
To reproduce this behavior:
1) Create an empty docx with the standard template, so that the margins before and after paragraphs are 0 and the line spacing is set to “simple”.
2) Save as docx
3) Load the document in Aspose
4) Create a DocumentBuilder for the template
5) Call insertHTML on the DocumentBuilder and import a complete HTML-Document
6) Save
It should be possible to define the margins in the template.