For Annot.Type.e_Link type how can I extract the location of the document window on that page as well as magnification?

Hi
For Annot.Type.e_Link type how can I extract the location of the document window on that page as well as magnification?

Thanks

Sample for page number I’v got already:
switch (annot.GetType())
{
case Annot.Type.e_Link:
{
Link lnk = new Link(annot);
Action action = lnk.GetAction();
if (!action.IsValid()) continue;
if (action.GetType() == Action.Type.e_GoTo)
{
Destination dest = action.GetDest();
if (!dest.IsValid())
{
System.Console.WriteLine(" Destination is not valid");
}
else
{
int pg_num = dest.GetPage().GetIndex();
System.Console.WriteLine(" Links to: page number " + pg_num + " in this document");
}
}
else if (action.GetType() == Action.Type.e_URI)
{
uri = action.GetSDFObj().Get(“URI”).Value().GetAsPDFText();
System.Console.WriteLine(" Links to: " + uri);
}
// …
}
break;
case Annot.Type.e_Widget:
break;
case Annot.Type.e_FileAttachment:
break;
// …
default:
break;
}

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

When checking the Destination from a e_Link type, you will first need to check which FitType the destination is by calling GetFitType().

If the type is e_XYZ, you can then parse the destination object for the x, y and zoom level. Please see the post below on how to do so: