API referenceAnnotations

pdfGetAnnotTextAlign

Read a FreeText annotation's /Q text-justification value

C
int32_t __stdcall pdfGetAnnotTextAlign(PPDF IPDF, uint32_t Handle);
Delphi
function pdfGetAnnotTextAlign(const IPDF: PPDF; Handle: Cardinal): Integer; stdcall;

Purpose. Read a FreeText annotation's /Q text-justification value (0=Left, 1=Center, 2=Right).

Return value. The alignment code; 0 if Handle doesn't resolve or has no /Q entry.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetAnnotTextAlign(IntPtr IPDF, uint Handle);
Area
Annotations
Category

Annotations

Exported names

pdfGetAnnotTextAlign

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.