Код: Выделить всё
public static void GetLinks(PdfDocument pdfDocument, int page)
{
//get annotations on page
IList
annotations = pdfDocument.GetPage(page).GetAnnotations();
//loop all onnotations
foreach (PdfAnnotation annotation in annotations)
{
if (annotation.GetSubtype() == PdfName.Link)
{
PdfArray sourceRect = annotation.GetRectangle();
//here i want to get the rectangle and pageno of the destination
//PdfArray destinationRect = ???
//int destinationPageNo = ???
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... -action-in