Hi Aspose team,
We use Apose.Words 17.8.0.0 to handle hyperlink in this file test.zip (15.6 KB)
and Aspose has failed to handle hyperlink
This is my sample code
try
{
Aspose.Words.Document doc = new Aspose.Words.Document(inputFile);
NodeCollection starts = doc.GetChildNodes(NodeType.FieldStart, true);
foreach (FieldStart start in starts)
{
if (start.FieldType == Aspose.Words.Fields.FieldType.FieldHyperlink)
{
Node currentNode = start.NextSibling;
while (currentNode.NodeType != NodeType.FieldEnd)
{
currentNode = currentNode.NextSibling;
}
}
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Debug code, we saw that hyperlink has character ‘\r’ in the last position and this is the cause. Could you please check this issue?
And please double check with other special characters (\n, \t…)
Thanks