GetFreeTextAnnotAlignment

Annotations and hotspot links

Description

Reads the text alignment of a FreeText annotation

An absent /Q entry reports ataLeft

Syntax

Delphi

Function GetFreeTextAnnotAlignment(Index: Integer; Out Alignment: TPDFlibAnnotTextAlignment): Integer;

Parameters

IndexOne-based annotation index on the currently selected page; the annotation must be a FreeText annotation
AlignmentReceives ataLeft, ataCenter or ataRight; an absent /Q entry reports ataLeft

Return values

1The alignment was read, including the default when /Q is absent
0No document is loaded, Index does not address a FreeText annotation, or /Q is not an integer inside the enumeration; Alignment stays at ataLeft