C
int32_t __stdcall pdfDeleteField(PPDF IPDF, uint32_t AField);
int32_t __stdcall pdfDeleteFieldEx(PPDF IPDF, const char* Name);
Delphi
function pdfDeleteField(const IPDF: PPDF; AField: Cardinal): Integer; stdcall;
function pdfDeleteFieldEx(const IPDF: PPDF; const Name: PAnsiChar): Integer; stdcall;
Purpose. Delete a field — by handle or by name.
Return value. 1 if the field resolved and was deleted; 0 otherwise.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfDeleteFieldEx(IntPtr IPDF, [MarshalAs(UnmanagedType.LPStr)] string Name);
Area
Forms
Category
Core
Exported names
pdfDeleteFieldEx
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.