---
title: "Image-to-PDF MAUI library: JPG, PNG, TIFF to PDF | Nutrient"
canonical_url: "https://www.nutrient.io/guides/maui/conversion/image-to-pdf/"
md_url: "https://www.nutrient.io/guides/maui/conversion/image-to-pdf.md"
last_updated: "2026-05-25T17:21:17.262Z"
description: "Nutrient MAUI SDK enables you to convert images to PDFs. For more information on the supported image formats, see the list of supported file types."
---

# Convert images to PDFs in your MAUI app

Nutrient MAUI SDK enables you to convert images to PDFs. For more information on the supported image formats, see the [list of supported file types](https://www.nutrient.io/guides/maui/about/file-type-support.md).

## Image to PDF

To generate a PDF using images, follow the steps below.

1. While loading a document, you can pass an [asset path](https://www.nutrient.io/guides/maui/open-a-document/from-app-assets.md), a [local path](https://www.nutrient.io/guides/maui/open-a-document/from-local-storage.md), a [URL](https://www.nutrient.io/guides/maui/open-a-document/from-remote-url.md), a [byte array](https://www.nutrient.io/guides/maui/open-a-document/from-arraybuffer.md), or a [Base64 string](https://www.nutrient.io/guides/maui/open-a-document/from-base64-data.md) of an image into the loading function:

   ```csharp

   var documentFromAsset =
       await PSPDFKitController.LoadDocumentFromAssetsAsync(imageAssetPath, PSPDFKitController.CreateViewerConfiguration());

   var documentFromLocalStorage =
       await PSPDFKitController.LoadDocument(imagePath, PSPDFKitController.CreateViewerConfiguration());

   var documentFromBuffer =
       await PSPDFKitController.LoadDocumentFromBufferAsync(imageBuffer, PSPDFKitController.CreateViewerConfiguration());

   var documentFromBase64String =
       await PSPDFKitController.LoadDocumentFromBase64StringAsync(imageAsBase64String, PSPDFKitController.CreateViewerConfiguration());

   var documentFromRemoteUrl =
       await PSPDFKitController.LoadDocumentFromURLAsync(remoteImageURL, PSPDFKitController.CreateViewerConfiguration());
   ```

2. Optionally, make changes to the image. For example, [add an annotation](https://www.nutrient.io/guides/maui/annotations.md).

3. To export a loaded image as a PDF, use the `ExportDocumentAsync` function:

```csharp

var exportConfiguration = _document.CreateExportConfiguration();
var exportedDocumentAsPDF = await _document.ExportDocumentAsync(exportConfiguration);

```

When exporting a document, you have several options. Refer to our [export configuration](https://www.nutrient.io/guides/maui/save-a-document/export-configuration.md) guide for more details.

4. Save the output. The export method returns a byte array, which can be saved [to a file](https://www.nutrient.io/guides/maui/save-a-document/to-local-storage.md) or sent [to a server](https://www.nutrient.io/guides/maui/save-a-document/to-remote-server.md).
---

## Related pages

- [MAUI PDF conversion library](/guides/maui/conversion.md)
- [Convert Office to PDF using C#](/guides/maui/conversion/office-to-pdf.md)
- [Convert PDFs and images to PDF/A in MAUI](/guides/maui/conversion/to-pdfa.md)

