New to Telerik Document Processing? Start a free 30-day trial
Flatten Form Fields
Updated on Feb 19, 2026
The form field flattening feature removes all fields but preserves their content in the document. After this operation the document no longer can be edited. This functionality was added in R2 2021 version.
There are two methods that you can use for this. One to flatten all fields and one to flatten a single field. The bellow examples demonstrate how to use them.
Using the FlattenFormFields method
The FlattenFormFields method does not take any parameters and will flatten 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 should be flattened as a parameter. The field must belong to the same document.
Example 2: Flatten 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);
}