C
int32_t __stdcall pdfGetMaxFieldLen(PPDF IPDF, uint32_t TxtField);
BOOL32 __stdcall pdfSetMaxFieldLen(PPDF IPDF, uint32_t TxtField, int32_t MaxLen);
Delphi
function pdfGetMaxFieldLen(const IPDF: PPDF; TxtField: Cardinal): Integer; stdcall;
function pdfSetMaxFieldLen(const IPDF: PPDF; TxtField: Cardinal; MaxLen: Integer): LongBool; stdcall;
Purpose. Get/set a text field's /MaxLen character limit.
Return value. Getter: the current limit (0 = unlimited, or if TxtField doesn't resolve — the two are indistinguishable). Setter: True on success.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Forms
Category
Setters
Exported names
pdfSetMaxFieldLen
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.