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.
Testcase: AsposeTestApp.zip How to replicate: 1. Word document has no (0pt) margin before and after a paragraph in the standard template 2. In the html document there are no margins defined 3. The testcase opens the document, inserts the html-file and stores it under output.docx Result with 13.10.0.0: The margin is suddenly 12pt Result with 13.7.0.0: Correctly no margin
Thanks for the additional information. I tested the scenario and have managed to reproduce the same problem on my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9541. Our development team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.
I do not mean to rush, but this problem is becoming a larger inconvenience and is preventing us from updating to the next aspose version. Could we have an update on this matter to plan our releases accordingly?
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.