API referenceForms

pdfGetPageField

Enumerate the fields whose widget annotation is placed on

C
BOOL32 __stdcall pdfGetPageField(PPDF IPDF, uint32_t Index, TPDFField* Field);
BOOL32 __stdcall pdfGetPageFieldEx(PPDF IPDF, uint32_t Index, TPDFFieldEx* Field);
int32_t __stdcall pdfGetPageFieldCount(PPDF IPDF);
Delphi
function pdfGetPageField(const IPDF: PPDF; Index: Cardinal; var Field: TPDFField): LongBool; stdcall;
function pdfGetPageFieldEx(const IPDF: PPDF; Index: Cardinal; var Field: TPDFFieldEx): LongBool; stdcall;
function pdfGetPageFieldCount(const IPDF: PPDF): Integer; stdcall;

Purpose. Enumerate the fields whose widget annotation is placed on the current page, by 0-based index.

Return value. True if Index is in range for the current page; False otherwise. pdfGetPageFieldCount: the current page's field count; 0 if no page is open.

See also. pdfGetField.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Forms
Category

Getters

Exported names

pdfGetPageField

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.