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
| FileHandle | Uchwyt zwrócony przez funkcję DAOpenFile, DAOpenFileReadOnly lub DAOpenFromStream |
|---|---|
| Page | Numer strony. Pierwsza strona dokumentu ma numer 1. |
Wartości zwracane
| 0 | Podany FileHandle był nieprawidłowy albo parametr Page był poza zakresem |
|---|---|
| Wartość niezerowa | Identyfikator, którego można użyć jako parametru PageRef dowolnej funkcji Direct Access |