---
title: "Customizing PDF editing permissions on Android | Nutrient"
canonical_url: "https://www.nutrient.io/guides/android/editor/document-permissions/"
md_url: "https://www.nutrient.io/guides/android/editor/document-permissions.md"
last_updated: "2026-05-20T19:49:34.711Z"
description: "Configure a PDF document’s editing permissions using the DocumentSaveOptions object, setting flags such as DocumentPermissions.ANNOTATIONS_AND_FORMS, then call PdfDocument#save() on Android."
---

# Customizing PDF editing permissions on Android

This guide covers editing of document permissions. To get an initial overview of what PDF document permissions are and how they’re incorporated into Nutrient, first take a look at the [document permissions](https://www.nutrient.io/guides/android/features/document-permissions.md) guide.

Modifying a document’s permissions requires Nutrient to be instantiated with a license that includes the Document Editor component.

It’s worth noting that if you wish to modify the default document permissions with Nutrient, you’ll be required to protect the document with a password.

You can retrieve the current permissions of a document via the [`getPermissions()` method defined in the `PdfDocument` class](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document/-pdf-document/get-permissions.html). This class also defines a method, [`hasPermission(DocumentPermission)`](https://www.nutrient.io/api/android/nutrient/com.pspdfkit.document/-pdf-document/has-permission.html), which checks whether or not the document has a specific permission set.

Document permissions can be set by defining the appropriate flags on the `DocumentSaveOptions` object used to save an existing document:

### KOTLIN

```kotlin

val saveOptions = document.getDefaultDocumentSaveOptions()
saveOptions.setPermissions(EnumSet.of(DocumentPermissions.ANNOTATIONS_AND_FORMS))

document.save(documentPath, saveOptions)

```

### JAVA

```java

DocumentSaveOptions saveOptions = document.getDefaultDocumentSaveOptions();
saveOptions.setPermissions(EnumSet.of(DocumentPermissions.ANNOTATIONS_AND_FORMS))

document.save(documentPath, saveOptions)

```

Currently, Nutrient Android SDK doesn’t offer a UI from which a user can modify the document permissions.
---

## Related pages

- [Add and insert images into PDFs on Android](/guides/android/editor/add-image.md)
- [Add pages to PDF files on Android](/guides/android/editor/add-page.md)
- [Attach files to PDFs on Android](/guides/android/features/embedded-files.md)
- [Edit text in PDFs on Android](/guides/android/editor/edit-text.md)
- [Merge multiple PDF files on Android](/guides/android/editor/merge-or-combine.md)
- [PDF editor library for Android](/guides/android/features/document-processing.md)
- [Split PDFs on Android](/guides/android/editor/split.md)

