API referenceForms

pdfDeleteAcroForm

Remove the entire AcroForm — every field, the /AcroForm

C
void __stdcall pdfDeleteAcroForm(PPDF IPDF);
Delphi
procedure pdfDeleteAcroForm(const IPDF: PPDF); stdcall;

Purpose. Remove the entire AcroForm — every field, the /AcroForm catalog entry itself, and (implicitly) every field widget's on-page appearance.

Return value. None.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void pdfDeleteAcroForm(IntPtr IPDF);
Area
Forms
Category

Core

Exported names

pdfDeleteAcroForm

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.