---
title: "Embed annotations in PDF in Flutter"
canonical_url: "https://www.nutrient.io/guides/flutter/annotations/save/embed-into-pdf/"
md_url: "https://www.nutrient.io/guides/flutter/annotations/save/embed-into-pdf.md"
last_updated: "2026-06-09T10:38:40.881Z"
description: "Nutrient Flutter SDK lets you create a new document with embedded annotations using the processAnnotations(String type, String processingMode."
---

# Embed annotations in a PDF file on Flutter

Nutrient Flutter SDK allows you to create a new document with embedded annotations using the `processAnnotations(String type, String processingMode, String destinationPath)` function.

## Parameters

`type` is the annotation type parameter that specifies which annotation types Nutrient should process. See the list of all [supported annotation types](https://www.nutrient.io/guides/flutter/annotations/introduction-to-annotations/annotation-types.md). To process all annotations (including forms), you need to set the value for the annotation type parameter to `all` or `null`.

`processingMode` is a string that specifies how Nutrient should include annotations in the resulting document. For embedding annotations while still allowing them to be modified, the mode should be set to `embed`. See our [annotation flattening](https://www.nutrient.io/guides/flutter/annotations/flatten.md) guide for a description of the other available processing modes.

`destinationPath` is a string that specifies the path where the resultant processed file will be stored. By default, it’ll be stored under the [document directory](https://developer.apple.com/documentation/foundation/filemanager/searchpathdirectory/documentdirectory).

Make sure you save all annotations before processing the document. For more details, refer to our guide showing how to [manually save](https://www.nutrient.io/guides/flutter/save-a-document.md#manual-save) annotations in a document.

## Usage

Here’s how the function call for embedding all annotations into the PDF, which will be saved to `PDFs/export.pdf`, would look:

```dart

// First open a PDF file using `present()`.
await Nutrient.processAnnotations('all', 'embed', 'PDFs/export.pdf');

```
---

## Related pages

- [Auto save annotations in Flutter](/guides/flutter/annotations/save/auto-save.md)
- [Manually save annotations in Flutter](/guides/flutter/annotations/save/manual-save.md)
- [Customize annotation saving permissions in Flutter](/guides/flutter/annotations/save/saving-permissions.md)

