AddActionNextRemoteDestinationEx
Actions
Description
Appends a remote go-to action containing a file specification, zero-based explicit destination and optional window preference
Syntax
Function TPDFlib.AddActionNextRemoteDestinationEx(ActionID: Integer; Const FileName: WideString; DestPage, DestType, ValueMask: Integer; Left, Top, Right, Bottom, Zoom: Double; NewWindow: Integer): Integer;Parameters
| ActionID | Existing action handle that receives the remote go-to action |
|---|---|
| FileName | Target PDF file; it must not be empty and is stored as a portable file specification |
| DestPage | Zero-based page number in the target document; negative values are rejected |
| DestType | 1 through 8 for XYZ, Fit, FitH, FitV, FitR, FitB, FitBH and FitBV |
| ValueMask | Bits 1, 2, 4, 8 and 16 select left, top, right, bottom and zoom; Fit and FitB require 0, FitH and FitBH accept only 2, FitV and FitBV only 1, FitR exactly 15, and XYZ may combine 1, 2 and 16 |
| Left | Left coordinate in default user space units; used by XYZ, FitV, FitBV and FitR |
| Top | Top coordinate in default user space units; used by XYZ, FitH, FitBH and FitR |
| Right | Right coordinate in default user space units; used only by FitR |
| Bottom | Bottom coordinate in default user space units; used only by FitR |
| Zoom | Zoom percentage from 0 through 6400; used only by XYZ and stored as a fraction |
| NewWindow | -1 omits /NewWindow, 0 stores false and 1 stores true |
Return values
| 1 | The remote go-to action was written with the supplied file, destination and window preference |
|---|---|
| 0 | The handle is invalid or not a GoToR action, the file name is empty, the destination or mask combination is invalid, or a PDF/A mode is active |
Remarks
The destination and mask rules match SetActionRemoteDestinationEx and invalid Fit combinations are rejected before the chain changes