C
int32_t __stdcall pdfGetFieldTextAlign(PPDF IPDF, uint32_t AField);
BOOL32 __stdcall pdfSetFieldTextAlign(PPDF IPDF, uint32_t AField, int32_t Align);
Delphi
function pdfGetFieldTextAlign(const IPDF: PPDF; AField: Cardinal): Integer; stdcall;
function pdfSetFieldTextAlign(const IPDF: PPDF; AField: Cardinal; Align: Integer): LongBool; stdcall;
Purpose. Get/set a field's /Q text justification (Left/Center/ Right).
Return value. Getter: the alignment; 0 if AField doesn't resolve. Setter: True on success.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Forms
Category
Forms
Exported names
pdfSetFieldTextAlign
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.