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

ActionIDExisting action handle that receives the remote go-to 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

The destination and mask rules match SetActionRemoteDestinationEx and invalid Fit combinations are rejected before the chain changes