SetFreeTextAnnotAlignment

Annotations and hotspot links

Description

Sets left, centre or right alignment on a FreeText annotation

Rejects annotations whose subtype is not FreeText

Syntax

Delphi

Function SetFreeTextAnnotAlignment(Index: Integer; Alignment: TPDFlibAnnotTextAlignment): Integer;

Parameters

IndexOne-based annotation index on the currently selected page; the annotation must be a FreeText annotation
AlignmentataLeft 0, ataCenter 1 or ataRight 2, written as /Q

Return values

1/Q was written and the document minimum version was raised to PDF 1.3
0No document is loaded, Index does not address a FreeText annotation, or Alignment is outside the enumeration