C
BOOL32 __stdcall pdfFlattenForm(PPDF IPDF);
Delphi
function pdfFlattenForm(const IPDF: PPDF): LongBool; stdcall;
Purpose. Flatten every form field in the document (bake current appearances into page content, remove interactivity) — the field-only counterpart of pdfFlattenAnnots (Flattening Annotations and Fields), which instead only flattens pure annotations.
Return value. True if IPDF is valid.
See also. pdfFlattenAnnots, pdfFlattenAnnotOrField (the single-object, combined-index variant).
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Forms
Category
Core
Exported names
pdfFlattenForm
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.