# Image to PDF in React Native

Nutrient React Native SDK enables you to create a PDF document from a single image or a series of images. You can provide configuration options and a name for the new PDF document:

```js

const globalPath = getMainBundlePath(exampleImagePath.toString());
const configuration = {
    name: 'newDocument.pdf',
    images: [
      {
        imageUri: Platform.OS === 'ios'? globalPath : exampleImagePath,
        position: 'center',
      },
    ],
    override: true,
};

try {
    const { fileURL } = await Processor.generatePDFFromImages(configuration);
} 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)
- [HTML to PDF in React Native](/guides/react-native/pdf-generation/from-html.md)
- [Document to PDF in React Native](/guides/react-native/pdf-generation/from-documents.md)
- [Generate PDFs in React Native](/guides/react-native/pdf-generation.md)
- [Generate PDFs from a template in React Native](/guides/react-native/pdf-generation/from-template.md)

