---
title: "C# PDF to BMP: Accurately convert PDF to bitmap | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/conversion/pdf-to-bmp/"
md_url: "https://www.nutrient.io/guides/dotnet/conversion/pdf-to-bmp.md"
last_updated: "2026-05-19T11:59:04.392Z"
description: "Discover how to convert PDF files to various image formats such as JPG, PNG, TIFF, and more with our comprehensive step-by-step guide."
---

# Convert PDF to bitmap (BMP) in C#

### Overview

[Overview](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-image.md)

### PDF to TIFF

[PDF to TIFF](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-tiff.md)

### PDF to JPG

[PDF to JPG](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-jpg.md)

### PDF to PNG

[PDF to PNG](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-png.md)

### PDF to BMP

[PDF to BMP](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-bmp.md)

### PDF to SVG

[PDF to SVG](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-svg.md)

### PDF to Other Image

[PDF to Other Image](https://www.nutrient.io/guides/dotnet/conversion/pdf-to-other-image.md)

To create a BMP image from a page in a PDF document, follow the steps below:

1. Create a `GdPicturePDF` object and a `GdPictureImaging` object.

2. Load the source document by passing its path to the `LoadFromFile` method of the `GdPicturePDF` object.

3. Select the page that you want to convert to an image with the `SelectPage` method of the `GdPicturePDF` object.

4. Render the selected page to a 200 dots-per-inch (DPI) image with the `RenderPageToGdPictureImageEx` method of the `GdPicturePDF` object.

5. Save the output in a BMP image with the `SaveAsBMP` method.

The example below creates a BMP image from the first page of a PDF document:

### C#

```csharp

using GdPicturePDF gdpicturePDF = new GdPicturePDF();
using GdPictureImaging gdpictureImaging = new GdPictureImaging();
// Load the source PDF document.
gdpicturePDF.LoadFromFile(@"C:\temp\source.pdf");
// Select the first page of the PDF.
gdpicturePDF.SelectPage(1);
// Render the selected page to an image.
int imageId = gdpicturePDF.RenderPageToGdPictureImageEx(200, true);
// Save the output in a BMP image.
gdpictureImaging.SaveAsBMP(imageId, @"C:\temp\output.bmp");
// Release unnecessary resources.
gdpictureImaging.ReleaseGdPictureImage(imageId);
gdpicturePDF.CloseDocument();

```

### VB.NET

```vb

Using gdpicturePDF As GdPicturePDF = New GdPicturePDF()
Using gdpictureImaging As GdPictureImaging = New GdPictureImaging()
    ' Load the source PDF document.
    gdpicturePDF.LoadFromFile("C:\temp\source.pdf")
    ' Select the first page of the PDF.
    gdpicturePDF.SelectPage(1)
    ' Render the selected page to an image.
    Dim imageId As Integer = gdpicturePDF.RenderPageToGdPictureImageEx(200, True)
    ' Save the output in a BMP image.
    gdpictureImaging.SaveAsBMP(imageId, "C:\temp\output.bmp")
    ' Release unnecessary resources.
    gdpictureImaging.ReleaseGdPictureImage(imageId)
    gdpicturePDF.CloseDocument()
End Using
End Using

```

#### Used methods

- [`CloseDocument`](/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~CloseDocument.html)

- [`LoadFromFile`](/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~LoadFromFile.html)

- [`RenderPageToGdPictureImageEx`](/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~RenderPageToGdPictureImageEx.html)

- [`SaveAsBMP`](/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPictureImaging~SaveAsBMP.html)

- [`SelectPage`](/api/gdpicture/GdPicture.NET.14.API~GdPicture14.GdPicturePDF~SelectPage.html)

#### Related topics

- [Load a file](/guides/dotnet/load-a-file.md)

- [Save a file](/guides/dotnet/save-a-file.md)

---

## Related pages

- [Convert any image to PDF in C#](/guides/dotnet/conversion/any-image-to-pdf.md)
- [Convert bitmap (BMP) to PDF in C#](/guides/dotnet/conversion/bmp-to-pdf.md)
- [Convert DWG or DXF to PDF in C#](/guides/dotnet/conversion/cad-to-pdf.md)
- [Convert to MS Office from any file in C#](/guides/dotnet/conversion/any-file-to-office.md)
- [Convert emails (MSG/EML) to PDF in C#](/guides/dotnet/conversion/email-to-pdf.md)
- [Convert Excel to PDF in C#](/guides/dotnet/conversion/excel-to-pdf.md)
- [Embed a font in a Word document](/guides/dotnet/conversion/embed-font-in-word-document.md)
- [Convert HTML to Word in C#](/guides/dotnet/conversion/html-to-word.md)
- [Convert HTML to PDF using C# and .NET](/guides/dotnet/conversion/html-to-pdf.md)
- [Convert files to PDF in C# .NET](/guides/dotnet/conversion.md)
- [Convert JPG to PDF in C#](/guides/dotnet/conversion/jpg-to-pdf.md)
- [Converting a document from Markdown to PDF format](/guides/dotnet/conversion/markdown-to-pdf.md)
- [Convert MS Office files to PDFs in C#](/guides/dotnet/conversion/office-to-pdf.md)
- [Convert PDF to Excel in C#](/guides/dotnet/conversion/pdf-to-excel.md)
- [Merge and combine multiple files into a PDF in C#](/guides/dotnet/conversion/merge-to-pdf.md)
- [Convert images to PDFs in C#](/guides/dotnet/conversion/pdf-to-image.md)
- [Convert PDF to JPG in C#](/guides/dotnet/conversion/pdf-to-jpg.md)
- [Converting a document from PDF to Markdown format](/guides/dotnet/conversion/pdf-to-markdown.md)
- [Convert PDF to other images in C#](/guides/dotnet/conversion/pdf-to-other-image.md)
- [Convert PDF to PDF/UA](/guides/dotnet/conversion/pdf-to-pdf-ua.md)
- [Convert PDF to PNG in C#](/guides/dotnet/conversion/pdf-to-png.md)
- [Convert PDF to PDF/A](/guides/dotnet/conversion/pdf-to-pdfa.md)
- [Convert PDF to SVG in C#](/guides/dotnet/conversion/pdf-to-svg.md)
- [Convert images to PDFs in C#](/guides/dotnet/conversion/image-to-pdf.md)
- [Convert PDF to TIFF in C#](/guides/dotnet/conversion/pdf-to-tiff.md)
- [Convert PDF to PowerPoint in C#](/guides/dotnet/conversion/pdf-to-powerpoint.md)
- [Convert PNG to PDF in C#](/guides/dotnet/conversion/png-to-pdf.md)
- [Convert PDF to Word in C#](/guides/dotnet/conversion/pdf-to-word.md)
- [Convert PowerPoint to PDF in C#](/guides/dotnet/conversion/powerpoint-to-pdf.md)
- [Convert RTF to Word in C#](/guides/dotnet/conversion/rtf-to-docx.md)
- [Convert RTF to PDF in C#](/guides/dotnet/conversion/rtf-to-pdf.md)
- [Convert SVG to PDF in C#](/guides/dotnet/conversion/svg-to-pdf.md)
- [Convert text to PDF in C#](/guides/dotnet/conversion/text-to-pdf.md)
- [Convert Word to PDF in C#](/guides/dotnet/conversion/word-to-pdf.md)
- [Convert to Word, Excel, or PowerPoint in C#](/guides/dotnet/conversion/to-office.md)
- [Convert TIFF to PDF in C#](/guides/dotnet/conversion/tiff-to-pdf.md)

