---
title: "Converting PDF pages to images | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/csharp/conversion/pdf-pages-to-images/"
md_url: "https://www.nutrient.io/guides/dotnet/csharp/conversion/pdf-pages-to-images.md"
last_updated: "2026-10-08T00:00:00.000Z"
description: "Export each page of a PDF as a separate image file using Nutrient .NET SDK."
---

# Converting PDF pages to images

Convert each page in a multi-page PDF into a separate image file. Use this approach when you need per-page previews, thumbnails, or image-based processing for individual pages.

## How Nutrient supports this workflow

Here’s how the Nutrient.NET SDK handles image export for multi-page PDFs.

When you export a multi-page PDF as PNG, JPEG, or BMP, the SDK writes one numbered file for each page. The destination filename acts as a template. For example, `output.png` becomes `output-1.png`, `output-2.png`, and so on.

For TIFF output, the SDK writes all pages to a single multi-page file. If you need single-file TIFF output, refer to the [PDF to image](https://www.nutrient.io/guides/dotnet/csharp/conversion/pdf-to-image.md) guide.

You don’t need to:

- Iterate through pages yourself

- Create per-page filenames

- Render each page to a bitmap before saving

The SDK handles page iteration and file numbering.

## Complete implementation

The following example exports each page from a multi-page PDF as a separate PNG file.

Import the Nutrient namespace:

```csharp

using Nutrient;

```

Open the multi-page PDF with a [using declaration](https://learn.microsoft.com/dotnet/csharp/language-reference/statements/using), export it as PNG, and report the page count with the `PageCount` property. The SDK detects the output format from the `.png` extension and writes one file for each page:

```csharp

try
{
    using Document document = Document.Open("input.pdf");

```

```csharp

    document.ExportAsImage("output.png");
    Console.WriteLine($"Converted {document.PageCount} page(s); see output-1.png, output-2.png,...");
}
catch (NutrientException e)
{
    Console.Error.WriteLine($"Error: {e.Message}");
    Environment.Exit(1);
}

```

## Output

For a multi-page input PDF, this call writes numbered files like:

- `output-1.png`

- `output-2.png`

The original `output.png` filename serves as the template. The SDK appends `-N` before the file extension for each page, using one-based numbering.

For single-page documents, the SDK keeps the literal filename unchanged. For that workflow, refer to the [PDF to image](https://www.nutrient.io/guides/dotnet/csharp/conversion/pdf-to-image.md) guide.

## Choosing the format

The output behavior depends on the file format you choose.

| Format                 | Multi-page behavior                |
| ---------------------- | ---------------------------------- |
| TIFF (`.tiff`, `.tif`) | All pages are embedded in one file |
| PNG (`.png`)           | One numbered file per page         |
| JPEG (`.jpg`, `.jpeg`) | One numbered file per page         |
| BMP (`.bmp`)           | One numbered file per page         |

To override extension-based format detection, set the export format with the `ImageSettings.ExportFormat` property before calling `ExportAsImage`.

## Summary

The overall process matches the single-page workflow. You choose the output format with the file extension, and the SDK exports each page using the appropriate file pattern.
---

## Related pages

- [Nutrient .NET SDK conversion guides](/guides/dotnet/csharp/conversion.md)
- [Converting CAD files to PDF](/guides/dotnet/csharp/conversion/cad-to-pdf.md)
- [Converting email files to PDF](/guides/dotnet/csharp/conversion/email-to-pdf.md)
- [Converting a document from XLSX to PDF format](/guides/dotnet/csharp/conversion/excel-document-to-pdf.md)
- [Converting HTML to PDF](/guides/dotnet/csharp/conversion/html-to-pdf.md)
- [Converting a document from Markdown to PDF format](/guides/dotnet/csharp/conversion/markdown-to-pdf.md)
- [Converting PDF documents to Excel format for data analysis](/guides/dotnet/csharp/conversion/pdf-to-excel-document.md)
- [Converting PDF documents to HTML format for web publishing](/guides/dotnet/csharp/conversion/pdf-to-html.md)
- [Converting PDF documents to image format](/guides/dotnet/csharp/conversion/pdf-to-image.md)
- [Converting PDF documents to Markdown format](/guides/dotnet/csharp/conversion/pdf-to-markdown.md)
- [Converting PDF documents to PDF/A format](/guides/dotnet/csharp/conversion/pdf-to-pdf-a.md)
- [Converting PDF documents to PDF/UA format](/guides/dotnet/csharp/conversion/pdf-to-pdf-ua.md)
- [Converting PDF documents to PowerPoint presentations](/guides/dotnet/csharp/conversion/pdf-to-powerpoint-document.md)
- [Converting a document from PDF to DOCX format](/guides/dotnet/csharp/conversion/pdf-to-word-document.md)
- [Converting a document from PPTX to PDF format](/guides/dotnet/csharp/conversion/powerpoint-document-to-pdf.md)
- [Preparing and troubleshooting PDF/A conversion](/guides/dotnet/csharp/conversion/prepare-and-troubleshoot-pdf-a-conversion.md)
- [Converting a Word document to PDF while preserving comments](/guides/dotnet/csharp/conversion/word-document-to-pdf-including-comments.md)
- [Converting a document from DOCX to PDF/UA format](/guides/dotnet/csharp/conversion/word-document-to-pdf-ua.md)
- [Converting a document from DOCX to PDF format](/guides/dotnet/csharp/conversion/word-document-to-pdf.md)

