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 enables you to create a new document with flattened forms. In a document with flattened forms, the form fields and their contents remain visible, but users can’t edit them.

The following example flattens forms using the static Nutrient.processAnnotations operation:

await Nutrient.processAnnotations(
sourcePath: 'PDFs/form.pdf',
type: AnnotationType.all,
mode: AnnotationProcessingMode.flatten,
destinationPath: 'PDFs/flattened-form.pdf',
);

For more details about using the Nutrient.processAnnotations() operation, refer to the processing annotations guide.