THPDFPage.AddGoToRStructureDestinationLink Method

Adds a link annotation whose GoToR action targets a structure element in an external PDF by the byte-string /ID of that element, while keeping the required /D fallback page destination in the remote file

Declaration

procedure AddGoToRStructureDestinationLink(Rectangle: TRect; const FileName: AnsiString;
  const RemoteStructElemID: AnsiString; FallbackTargetPageIndex: Integer= 0;
  YPos: Single= - 1; NewWindow: boolean= false; const Description: AnsiString= '');

Unit

HPDFDoc

Parameters

NamePurpose
RectangleHot-spot rectangle in page units where the link is active
FileNameNon-empty path to the external PDF; backslashes are normalized to forward slashes
RemoteStructElemIDNon-empty byte-string /ID of the target StructElem in FileName; must match the /ID stamped on that element via the IDStr overload of AddStructureElement
FallbackTargetPageIndexRequired zero-based page index in the remote file used by the /D fallback destination; must be >= 0
YPosOptional vertical position for the /XYZ fit; pass a negative value to leave it null
NewWindowWhen true, emits /NewWindow true so the viewer opens the target in a new window
DescriptionAlternate description stored in the annotation /Contents; required under PDFUACompliance

Return value

This member does not return a value

Behavior

Related APIs