GetPageViewPortID
Page properties, Measurement and coordinate units
Description
Returns a ViewPortID value for the specified viewport of the selected page.
This value can be used with the GetViewPortName and GetViewPortMeasureDict functions. Use the GetPageViewPortCount function to determine the number of viewports on the page.
Syntax
Delphi
function TPDFlib.GetPageViewPortID(Index: Integer): Integer;ActiveX
Function PDFlib::GetPageViewPortID(Index As Long) As LongDLL
int DLGetPageViewPortID(int InstanceID, int Index);Parameters
| Index | The index of the viewport. The first viewport on the page has an index value of 1. |
|---|
Return values
| 0 | The view port at the specified index could not be found |
|---|---|
| Non-zero | A ViewPortID value |