.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfDocumentProcessor.FlattenForm() Method

Flattens an entire interactive form.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v21.1.dll

Declaration

public bool FlattenForm()

Returns

Type Description
Boolean

true If the interactive form is flattened successfully; false If the document doesn’t contain an interactive form that should be flattened.

Remarks

You can call the FlattenForm method the following way:

using (PdfDocumentProcessor processor = new PdfDocumentProcessor()) {
     processor.LoadDocument("Demo.pdf");
     if (processor.FlattenForm())
          processor.SaveDocument("Result.pdf");
}
See Also