public static void Run()
{
try
{
// ExStart:GetHyperlinkText
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_LinksActions();
// Load the PDF file
Document document = new Document(dataDir + "input.pdf");
// Iterate through each page of PDF
foreach (Page page in document.Pages)
{
// Show link annotation
ShowLinkAnnotations(page);
}
// ExEnd:GetHyperlinkText
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
// ExStart:ShowLinkAnnotations