---
title: "Flatten PDF form fields in React Native | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/react-native/forms/flatten/"
md_url: "https://www.nutrient.io/guides/react-native/forms/flatten.md"
last_updated: "2026-06-09T10:26:34.616Z"
description: "Nutrient React Native SDK lets you create a new document with flattened forms. In a document with flattened forms, the form fields."
---

# Flatten PDF form fields in React Native

Nutrient React Native SDK allows you to create a new document with flattened forms. In a document with flattened forms, the [form fields](https://www.nutrient.io/guides/react-native/forms/introduction-to-forms/form-fields.md) and their contents are still visible, but they’re no longer editable.

The example below shows how to flatten forms using the `Nutrient.processAnnotations(annotationChange, annotationType, sourceDocumentPath, processedDocumentPath, password)` function:

```js

const sourceDocumentPath =...
const RNFS = require("react-native-fs");
const processedDocumentPath = RNFS.DocumentDirectoryPath + '/flattened.pdf';
Nutrient.processAnnotations('flatten', 'all', sourceDocumentPath, processedDocumentPath, null);

```

For more details about how to use the `processAnnotations()` function, refer to our guide on how to [process annotations](https://www.nutrient.io/guides/react-native/annotations/flatten.md).
---

## Related pages

- [Extract data from PDF form fields in React Native](/guides/react-native/forms/extract-form-data.md)
- [Embed data into PDF forms in React Native](/guides/react-native/forms/embed-data-into-pdf.md)
- [PDF form library for React Native](/guides/react-native/forms.md)

