SetActionRemoteDestinationEx
Actions
Description
Replaces the file, explicit destination and window preference of an existing remote go-to action
Syntax
Function TPDFlib.SetActionRemoteDestinationEx(ActionID: Integer; Const FileName: WideString; DestPage, DestType, ValueMask: Integer; Left, Top, Right, Bottom, Zoom: Double; NewWindow: Integer): Integer;Parameters
| ActionID | Handle of an existing GoToR 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
DestPage is zero based, DestType uses 1 to 8 for XYZ to FitBV and ValueMask uses bits 1, 2, 4, 8 and 16 for left, top, right, bottom and zoom
XYZ permits missing values, FitR requires mask 15 and zoom is expressed as a percentage