SDT content control not getting in Word To HTML output

Dear Team,
I am currently working on the conversion of a Word document to HTML. The Word document contains several content controls within a table, and my primary objective is to identify Structured Document Tag (SDT) elements in the HTML output of these content controls.

In the HTML output, the content control value is enclosed within a div element that is styled as follows: “-aw-sdt-tag:‘5459d4b1-8fb7-4b5c-b911-f8ce5ab9c139’” where ‘5459d4b1-8fb7-4b5c-b911-f8ce5ab9c139’ represents the ID of the content control.

I have been successful in correctly capturing SDT elements at the block level. However, I am encountering challenges in extracting SDT elements at the cell level in the HTML output. I kindly request your guidance and any suggested solutions to help resolve this issue.

Aspose version : 21.8.0.0

Attachments:
Word document :
TempDocument.docx (15.9 KB)

Html Output :
Table Linking Issue_13-10-2023 05_33_42.zip (1.2 KB)

Thank you…

@AlpeshChaudhariDev As I can see the attached word document does not contain any SDTs:

Could you please make make sure the attached input MS Word document is the correct one?

In the output HTML however, I can see there are SDTs, where table is wrapped with SDT and there are SDTs in each cell:

<div style="-aw-sdt-tag:'c76e13d3-8778-4e92-83d2-39558d73e5a6'; -aw-sdt-title:'Test-4'">
	<table cellspacing="0" cellpadding="0" style="border:0.75pt solid #000000; -aw-border:0.5pt single; -aw-border-insideh:0.5pt single #000000; -aw-border-insidev:0.5pt single #000000; border-collapse:collapse">
		<tr>
			<td style="width:139.45pt; border-right:0.75pt solid #000000; border-bottom:0.75pt solid #000000; padding-right:5.03pt; padding-left:5.03pt; vertical-align:top; -aw-border-bottom:0.5pt single; -aw-border-right:0.5pt single">
				<div style="-aw-sdt-tag:'3b3e0a26-537a-441f-8d22-84bdd97c731a'">
					<p style="margin-top:0pt; margin-bottom:0pt; line-height:normal">
						<span>100</span>
					</p>
				</div>
			</td>
1 Like

Please refer this document
TempDocument.docx (24.3 KB)

@AlpeshChaudhariDev
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-26068

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.

Thanks for response…!!!

1 Like