Hi,
Please refer to the HTML file ( TestSDT.html )in the zip file.
If I open this with MS Word, I see the w;sdt tags of HTML are converted to Content Controls in MS Word.
If I generate a FLAT_OPC using the below code, the OOXML generated by Aspose.Words does not have the Content Control(s).
Below is the source code I use. Please let me know if I am missing something.
Document d = new Document("D:\\00TICKETS\\ACA308\\Demo2\\TestSDT.html");
SaveOptions opt = SaveOptions.createSaveOptions(SaveFormat.FLAT_OPC);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
d.save(bos, opt);
System.out.println(bos.toString( StandardCharsets.UTF_8.name()));
BR,
Dip
TestSDT.zip (799 Bytes)