GetAnnotLineEndings

Annotations and hotspot links

Description

Reads the typed start and end styles of a Line annotation

Absent /LE entries are reported as alesNone at both ends

Syntax

Delphi

Function GetAnnotLineEndings(Index: Integer; Out StartStyle, EndStyle: TPDFlibAnnotLineEndingStyle): Integer;

Parameters

IndexOne-based annotation index on the currently selected page; the annotation must be a Line annotation
StartStyleReceives the start ending style; alesNone when /LE is absent
EndStyleReceives the end ending style; alesNone when /LE is absent

Return values

1Both styles were read, including an absent /LE entry, which reports alesNone at both ends
0No document is loaded, Index does not address a Line annotation, or /LE is not a two-element name array; both outputs stay at alesNone