This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/flutter/forms/flatten.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Flatten PDF form fields in Flutter

Nutrient Flutter SDK allows you to create a new document with flattened forms. In a document with flattened forms, the form fields and their contents are still visible, but they’re no longer editable.

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

// 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 guide.