DOCX (with ( Content Controls) to HTML conversion using ASPOSE.Words Java

Hi,
I have the below code to convert an MS Word file to an HTML file using ASPOSE Words ( Java).
The MS Word file has Content Controls.

Document  d = new Document("TEST.docx");
SaveOptions opt = SaveOptions.createSaveOptions(SaveFormat.HTML);
d.save("ASPOSE_Converted_HTML.html", opt);

The Content Controls in the output HTML generated by ASPOSE are present as Style attributes
<div style="-aw-sdt-tag:'P1=P2'; -aw-sdt-title:'P1'"

If I save the docx file in MS Word App as HTML then the Content Controls are stored as Sdt Tags.
<w:Sdt DocPart="DefaultPlaceholder_-1854013440" Title="P2" SdtTag="P2=P3" ID="-1629224713">

Agiloft needs the <w:Sdt tags in the converted HTML file for its processing.

Please let me know if there is an option in ASPOSE Words such that ASPOSE converted HTML contains the <w:Sdt tags ( Like the ones generated by MS Word ) and not style attributes.

I am attaching the test docx file that has Content Controls.
Thanks!
TEST.docx (23.2 KB)

@dipsarkar No, unfortunately, there is no option to output Content Controls using w:Sdt tags. This is not a valid HTML tag. MS Word uses augmented HTML output.

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-29353

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.