SetOpenActionDestination
Document properties
Description
This function allows the opening page and zoom factor to be set for the selected document.
Syntax
Delphi
function TPDFlib.SetOpenActionDestination(OpenPage, Zoom: Integer): Integer;ActiveX
Function PDFlib::SetOpenActionDestination(OpenPage As Long, Zoom As Long) As LongDLL
int DLSetOpenActionDestination(int InstanceID, int OpenPage, int Zoom);Parameters
| OpenPage | The page number to jump to when the document is opened |
|---|---|
| Zoom | The zoom percentage to use when the document is opened: 0..1600 = percentage zoom -1 = Fit in window -2 = Fit width |
Return values
| 0 | The open action could not be set |
|---|---|
| 1 | The open action was set successfully |