---
title: "Embed annotations in PDF on Android | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/android/annotations/save/embed-into-pdf/"
md_url: "https://www.nutrient.io/guides/android/annotations/save/embed-into-pdf.md"
last_updated: "2026-06-09T10:32:42.676Z"
description: "By default, save writable PDFs to embed annotations directly; call PdfDocument#save() or enable auto saving to ensure annotations are saved within the PDF document file on Android."
---

# Embed annotations in a PDF file on Android

By default, Nutrient will save annotations into a PDF as long as the file is writable. This means the annotations are embedded into the PDF document file as annotation objects that can be edited and removed when the file is opened again in a reader that supports annotation editing. If you want to flatten the annotations so they are uneditable, see the [annotation flattening](https://www.nutrient.io/guides/android/annotations/flatten.md) guide.

## How to embed annotations into a PDF file

To embed saved annotations into a PDF, make sure the PDF file you’re opening is valid and in a writable file system location. If [auto saving](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.configuration/-pdf-configuration/-builder/autosave-enabled.html) is enabled, there’s nothing more to do; all annotations will automatically be saved in the PDF on an autosave event. See the [Auto Save](https://www.nutrient.io/guides/android/annotations/annotation-and-bookmark-saving-triggers.md) guide for more information. If you have auto save disabled, annotations will be embedded when calling the [`save`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document/-pdf-document/save.html) (or [`saveIfModified`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document/-pdf-document/save-if-modified.html)) method of the [`PdfDocument`] class.

## The benefits of embedding annotations into a PDF file

Saving annotations embedded in a PDF file has the benefit of having a single file with all its annotations in it. Embedding annotations into a PDF is helpful for scenarios like sharing, because you can share the PDF file with other users who use different PDF viewing applications. Since there’s a single source of truth, embedding annotations in the PDF is the best option when using the Document Editor, because the annotations will be preserved as expected when performing operations like reordering pages or duplicating pages.

However, for some use cases where you need to save and store annotations outside a PDF file — say in a database — you may want to save annotations outside the PDF. Refer to our guide about [saving annotations to an external source](https://www.nutrient.io/guides/android/annotations/save/to-external-source.md) for more details.
---

## Related pages

- [Auto save PDF annotations on Android](/guides/android/annotations/annotation-and-bookmark-saving-triggers.md)
- [Save PDF annotations to an external source on Android](/guides/android/annotations/save/to-external-source.md)
- [Save PDF annotations on Android](/guides/android/annotations/annotation-saving-mechanism.md)

