DAFindPage

Direct access functionality

Description

Use this function to obtain a page reference for use with other Direct Access functions. This page reference will remain constant even if other pages are added to or removed from the document.

Syntax

Delphi

function TPDFlib.DAFindPage(FileHandle, Page: Integer): Integer;

ActiveX

Function PDFlib::DAFindPage(FileHandle As Long, Page As Long) As Long

DLL

int DLDAFindPage(int InstanceID, int FileHandle, int Page);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageThe page number. The first page in the document has a page number of 1.

Return values

0The specified FileHandle was not valid or the Page parameter was out of range
Non-zeroAn ID that can be used as the PageRef parameter for any of the direct access functions