THPDFPage.AddStructureDestinationLink Method

Adds a link annotation whose GoTo action carries the required page-coordinate /D fallback destination and the PDF 2.0 /SD array naming the target StructElem by indirect reference, so PDF 2.0 viewers jump to structure content while legacy viewers fall back to the named page

Declaration

procedure AddStructureDestinationLink(Rectangle: TRect; StructElem: THPDFDictionaryObject;
  FallbackPageIndex: Integer; YPos: Single= - 1; const Description: AnsiString= '');

Unit

HPDFDoc

Parameters

NamePurpose
RectangleHot-spot rectangle in page units where the link is active
StructElemNon-nil indirect StructElem dictionary to target, typically from AddStructureElement or FindStructureElementForMCID
FallbackPageIndexRequired page index used by the /D explicit destination for non-PDF-2.0 viewers
YPosOptional vertical position for the /XYZ fit; pass a negative value to leave it null
DescriptionAlternate description stored in the annotation /Contents; required under PDFUACompliance

Return value

This member does not return a value

Behavior

Related APIs