GetDestType
Annotations and hotspot links
Description
Returns the type of the specified destination.
Syntax
Delphi
Function TPDFlib.GetDestType(DestID: Integer): Integer;
ActiveX
Function PDFlib::GetDestType(DestID As Long) As Long
DLL
int DLGetDestType(int InstanceID, int DestID);
Parameters
| DestID | The ID of the destination to analyse. A valid destination ID is returned by the GetOutlineDest function. |
|---|
Return values
| 1 | "XYZ" - the target page is positioned at the Left and Top properties of the destination, and the Zoom property gives the zoom percentage |
|---|---|
| 2 | "Fit" - the whole page is zoomed to fit the window |
| 3 | "FitH" - the page is zoomed so that its full width is visible. The page height may be greater or less than the window height. The page is positioned vertically at the Top property of the destination. |
| 4 | "FitV" - the page is zoomed so that its full height can be seen. The page width may be greater or less than the window width. The page is positioned horizontally at the Left property of the destination. |
| 5 | "FitR" - the page is zoomed so that a given rectangle on the page is visible. The Left, Top, Right and Bottom properties of the destination define that rectangle. |
| 6 | "FitB" - the page is zoomed so that its bounding box is visible |
| 7 | "FitBH" - the page is positioned vertically at the value of the Top property of the destination, and zoomed so that the full width of the page's bounding box is visible |
| 8 | "FitBV" - the page is positioned horizontally at the value of the Left property of the destination, and zoomed just enough to fit the full height of the bounding box into the window |