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
| Index | One-based annotation index on the currently selected page; the annotation must be a FreeText annotation |
|---|---|
| Alignment | ataLeft 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 |
|---|---|
| 0 | No document is loaded, Index does not address a FreeText annotation, or Alignment is outside the enumeration |