New to Telerik Document ProcessingStart a free 30-day trial

Flatten Form Fields

Updated on Jun 3, 2026

The form field flattening feature removes all fields but preserves their content in the document. After this operation, the document can no longer be edited. This feature is available starting with the R2 2021 release.

Two methods are available for flattening. One flattens all fields and the other flattens a single field. The following examples demonstrate how to use them.

Using the FlattenFormFields Method

The FlattenFormFields method does not take any parameters and flattens all fields inside the document.

Example 1: Flatten All Fields

C#
RadFixedDocument document = new RadFixedDocument();
document.AcroForm.FlattenFormFields();

Using the FlattenFormField Method

The FlattenFormField method takes the field that you want to flatten as a parameter. The field must belong to the same document.

Example 2: Flatten a Single Field

C#
RadFixedDocument document = new RadFixedDocument();
string fieldName = "TextBoxField";

FormField field = document.AcroForm.FormFields.Where(n => n.Name == fieldName).FirstOrDefault();
if (field != null)
{
    document.AcroForm.FlattenFormField(field);
}

See Also