The document contains table which has cell with content control. This content control bound to CustomXMLPart. This cell’s content get duplicated if following operations performed:
Document document = new Document("input.docx", loadOptions);
document.UpdatePageLayout();
foreach (StructuredDocumentTag sdt in document.GetChildNodes(NodeType.StructuredDocumentTag, true))
{
sdt.XmlMapping.Delete();
}
The sample code and document to reproduce this issue is attached.DuplicateContentIssue.zip (22.2 KB)
The sample will take input.docx and generates output.docx and output.pdf file. Both files will show duplicated content in cell containing bullet.