Skip to main content
.NET Framework 4.5.2+

PdfDocumentProcessor.FlattenForm() Method

Flattens an entire interactive form.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v22.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");
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FlattenForm() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also