THotPDF.SetLoadedOpenActionPage Method
Sets the initial page to display by default when the loaded PDF document is opened (via an OpenAction jump).
Declaration
procedure SetLoadedOpenActionPage(PageIndex: Integer);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Target page index (zero-based). 0 indicates the first page of the document. |
AScale | Input supplied to SetLoadedOpenActionPage |
Usage notes
This member returns no value
Usage notes
- Use this API in the page geometry workflow before the affected page, resource, field or catalogue object is finalised
- Changes which page the reader positions its viewport on when the file is first opened, instead of the default first page
- Passing an invalid index value may cause the saved document to report an error or become invalid in some readers.