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

ActionIDHandle of an existing GoToR action
FileNameTarget PDF file; it must not be empty and is stored as a portable file specification
DestPageZero-based page number in the target document; negative values are rejected
DestType1 through 8 for XYZ, Fit, FitH, FitV, FitR, FitB, FitBH and FitBV
ValueMaskBits 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
LeftLeft coordinate in default user space units; used by XYZ, FitV, FitBV and FitR
TopTop coordinate in default user space units; used by XYZ, FitH, FitBH and FitR
RightRight coordinate in default user space units; used only by FitR
BottomBottom coordinate in default user space units; used only by FitR
ZoomZoom 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

1The remote go-to action was written with the supplied file, destination and window preference
0The 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 through 8 for XYZ through 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