pdfGetFieldChoiceValue
Read one /Opt entry (export value + display value pair)
C
BOOL32 __stdcall pdfGetFieldChoiceValue(PPDF IPDF, uint32_t AField, uint32_t ValIndex, TPDFChoiceValue* Value);
Delphi
function pdfGetFieldChoiceValue(const IPDF: PPDF; AField: Cardinal; ValIndex: Cardinal; var Value: TPDFChoiceValue): LongBool; stdcall;
Purpose. Read one /Opt entry (export value + display value pair) from a Choice-type field by index — a structured alternative to pdfGetFieldExpValueEx below, both reading the same underlying data.
Return value. True if AField/ValIndex resolve; False otherwise.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Forms
Category
Forms
Exported names
pdfGetFieldChoiceValue
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.