CSS Style & format is not applied in convert word file

Hi Team,

CSS style & format is not applied in word file, when we convert html file into word file using aspose word. Therefore, when we convert word file into pdf file. Then, in pdf file also css style & format is not applied.

Please find code snippet for html conversion to word file.

String bookmarkName="Glb_bkm_bp_disclosures";
Document discWordDoc= new Document(sampleHtmlPath);
org.jsoup.nodes.Document htmlDoc = Jsoup.parse(htmlFile, "UTF-8");
String htmlText = htmlDoc.outerHtml();

Bookmark bookmark = resultWordDoc.getRange().getBookmarks().get(bookmarkName);
if(bookmark != null) {
    DocumentBuilder builder = new DocumentBuilder(resultWordDoc);
    bookmark.setText("");
    builder.moveToBookmark(bookmarkName, true, false);
    builder.insertHtml(htmlText );
    bookmark.remove();
} 

Please find attached sample for your reference.
issue_with_word.zip (451.9 KB)

@forasposeissues Do you mean the border between paragraphs?

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27443

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Do you mean the border between paragraphs? Yes

@forasposeissues Thank you for additional information.

Any update on the issue ?

@forasposeissues We have completed analyzing the issue, but is is not yet scheduled for development. The problem occurs because your document contains MSO CSS properties, specifically mso-border-between, and Aspose.Words doesn’t support this CSS property.

team, any update on issue?

@forasposeissues The issue has been postponed and is not yet scheduled for development.

Team , any update on the issue ?

@forasposeissues I am afraid, there are still no news regarding the issue.