---
title: "React Native documents to PDF generation | Nutrient"
canonical_url: "https://www.nutrient.io/guides/react-native/pdf-generation/from-documents/"
md_url: "https://www.nutrient.io/guides/react-native/pdf-generation/from-documents.md"
last_updated: "2026-06-24T08:10:54.200Z"
description: "Learn how to generate PDFs from documents in React Native with our comprehensive guide. Enhance your app's functionality today!"
---

# Document to PDF in React Native

Nutrient React Native SDK enables you to create a PDF document from specific pages of existing PDF documents or by joining entire PDF documents. You can provide configuration options, the path to the output location of the new PDF, and the paths and page indexes to be used as input. If no indexes are provided, the entire document will be used:

```js

const configuration = {
    filePath: outputPath,
    name: 'newDocument.pdf',
    documents: [
      {
        documentPath: exampleDocumentPath1,
        pageIndex: 5,
      },
      {
        documentPath: exampleDocumentPath2,
        pageIndex: 8,
      },
    ],
    override: true,
  };
try {
    const { fileURL } = await Processor.generatePDFFromDocuments(configuration);
    // Do something with the new file by accessing it from the `fileURL` path.
} catch (error) {
    console.log(error);
}

```

For more information on customizing your document, see the list of all [configuration options](https://www.nutrient.io/guides/react-native/pdf-generation/configuration.md) you can use with [`Processor`](https://www.nutrient.io/api/react-native/Processor.html).
---

## Related pages

- [PDF generation configuration in React Native](/guides/react-native/pdf-generation/configuration.md)
- [Generate blank PDFs in React Native](/guides/react-native/pdf-generation/blank-pdf.md)
- [Image to PDF in React Native](/guides/react-native/pdf-generation/from-images.md)
- [HTML to PDF in React Native](/guides/react-native/pdf-generation/from-html.md)
- [Generate PDFs from a template in React Native](/guides/react-native/pdf-generation/from-template.md)
- [Generate PDFs in React Native](/guides/react-native/pdf-generation.md)

