Dear Team,
How to Replace the Hyperlink url (old url to new url) replace in PDF document file only in C#.
not page wise, i need PDf document wise.
foreach (var pages in pdfDocument.Pages)
{
foreach (LinkAnnotation annot in linkAnnotations)
{
var dat = (annot.Action as GoToURIAction)?.URI;
if (dat != null && dict.ContainsKey(dat))
{
annot.Action = new GoToURIAction(dict[dat]);
isExecuted = true;
}
}
}
i have tried but not working.
Thanks and Regards
Ilaya