I’m examining a PDF that has been supplied to me. It contains internal hyperlinks (i.e. hyperlinks that take you to other pages within the document). For each hyperlink, I want to know the page number of the page it takes you to.
Hi Tim,
Thanks for your inquiry. In order to get the page number for named destination, PdfDocument.Destinations collection should be used. For example:
Document pdfDocument = new Document(myDir+"test.pdf");
int pageNumber1 = pdfDocument.Destinations.GetPageNumber("UntitledDestination", false);
Please feel free to contact us for any further assistance.
Best Regards,