Attached document for reference:
Redacted.zip (51.6 KB)
The document contains special SDTs which are having Title “redacted”. But the issue I am facing is
- The document contains 5 SDTs which are having Title “redacted”. But when I am traversing through them it is providing me 6 SDTs with Title “redacted”.
- When I am reading text from sdt using sdt.Range.Text it is returning text with escape sequences like ‘/w/r’. Is there any way by which I can get only plain text from Range?
The code I am using is
NodeCollection nodes = LobjDocument.GetChildNodes(NodeType.StructuredDocumentTag, true);
foreach (StructuredDocumentTag sdt in nodes)
if(sdt.Title.Trim() == “redacted”)