GetLinkAnnotHighlightMode

Annotations and hotspot links

Description

Reads the activation highlight mode of a Link annotation

An absent /H entry reports the PDF default lhmInvert

Syntax

Delphi

Function GetLinkAnnotHighlightMode(Index: Integer; Out Mode: TPDFlibLinkHighlightMode): Integer;

Parameters

IndexOne-based annotation index on the currently selected page; the annotation must be a Link annotation
ModeReceives lhmNone, lhmInvert, lhmOutline or lhmPush; an absent /H entry reports the PDF default lhmInvert

Return values

1The mode was read, including the default when /H is absent
0No document is loaded, Index does not address a Link annotation, or /H is not a recognised name; Mode stays at lhmInvert