Hi Aspose, I attached my sample which has hyperlink when clicking picture. I cannot remove this link by using the following code based on Link Remove
I used Aspose.Word 17.8.
My sample is hyperlink.zip (49.4 KB)
Thanks you in advance
Blockquote
string inputDocFile = “D:\testfile.doc”
Aspose.Words.Document doc = new Aspose.Words.Document(inputDocFile);
NodeCollection starts = doc.GetChildNodes(NodeType.FieldStart, true);
foreach (FieldStart start in starts) // No FieldStart here
{
if (start.FieldType == FieldType.FieldHyperlink)
{
start.Remove();
}
}