---
title: "Flatten PDF form fields in Flutter"
canonical_url: "https://www.nutrient.io/guides/flutter/forms/flatten/"
md_url: "https://www.nutrient.io/guides/flutter/forms/flatten.md"
last_updated: "2026-06-09T10:32:42.796Z"
description: "Learn how to flatten PDF form fields in Flutter using processAnnotations. Keep contents visible while making them uneditable."
---

# Flatten PDF forms in Flutter

Nutrient Flutter SDK allows you to create a new document with flattened forms. In a document with flattened forms, the [form fields](https://www.nutrient.io/guides/flutter/forms/introduction-to-forms/form-fields.md) and their contents are still visible, but they’re no longer editable.

The example below shows how to flatten forms using the `processAnnotations` function:

```dart

// First open a PDF file using `present()`.
await Nutrient.processAnnotations('all', 'flatten', 'PDFs/flattened-form.pdf');

```

For more details about how to use the `processAnnotations()` function, refer to our [processing annotations](https://www.nutrient.io/guides/flutter/annotations/flatten.md) guide.
---

## Related pages

- [Integrate PDF forms in Flutter](/guides/flutter/forms/embed-data-into-pdf.md)
- [Extract data from PDF forms using Flutter](/guides/flutter/forms/extract-form-data.md)
- [PDF form library for Flutter](/guides/flutter/forms.md)

