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)