---
title: "Flatten PDF annotations in MAUI applications | Nutrient"
canonical_url: "https://www.nutrient.io/guides/maui/annotations/flatten/"
md_url: "https://www.nutrient.io/guides/maui/annotations/flatten.md"
last_updated: "2026-06-08T16:49:11.588Z"
description: "When flattening an annotation, the annotation is removed from a document, while its visual representation is kept intact."
---

# Flattening PDF annotations in MAUI

When flattening an annotation, the annotation is removed from a document, while its visual representation is kept intact. A flattened annotation is still visible but no longer editable by your users or your app. This can be used, for example, to permanently apply annotations to your document, or to make annotations visible to viewers that otherwise can’t show annotations (like Safari on iOS).

You can use [`IExportConfiguration.Flatten`](https://www.nutrient.io/api/maui/api/PSPDFKit.Api.IExportConfiguration.html#PSPDFKit_Api_IExportConfiguration_Flatten) to flatten annotations during export:

```csharp

var exportConfiguration = _document.CreateExportConfiguration();
exportConfiguration.Flatten = true;
byte[] fileBytes = await _document.ExportDocumentAsync(exportConfiguration);

```
---

## Related pages

- [Annotate PDFs in our MAUI viewer](/guides/maui/annotations/built-in-ui.md)
- [MAUI PDF annotation library](/guides/maui/annotations.md)
- [Manage PDF annotations with Instant JSON](/guides/maui/annotations/instant-json.md)

