DAFindPage

Funkcje dostępu bezpośredniego

Opis

Użyj tej funkcji, aby uzyskać odwołanie do strony dla innych funkcji Direct Access. Odwołanie pozostanie stałe nawet po dodaniu innych stron do dokumentu lub usunięciu ich z niego.

Składnia

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);

Parametry

FileHandleUchwyt zwrócony przez funkcję DAOpenFile, DAOpenFileReadOnly lub DAOpenFromStream
PageNumer strony. Pierwsza strona dokumentu ma numer 1.

Wartości zwracane

0Podany FileHandle był nieprawidłowy albo parametr Page był poza zakresem
Wartość niezerowaIdentyfikator, którego można użyć jako parametru PageRef dowolnej funkcji Direct Access