This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/conversion/pdf-to-bmp.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. C# PDF to BMP: Accurately convert PDF to bitmap | Nutrient .NET SDK
PDF to BMP

Nutrient .NET SDK renders a PDF page and saves it as a BMP image.

Prepare the project

Register the SDK license before running conversion operations. For setup details, refer to the getting started with .NET SDK guide.

using GdPicture14;
LicenseManager license = new LicenseManager();
license.RegisterKEY("");
using GdPicturePDF pdf = new GdPicturePDF();
using GdPictureImaging imaging = new GdPictureImaging();
pdf.LoadFromFile(@"input.pdf");
pdf.SelectPage(1);
int imageId = pdf.RenderPageToGdPictureImageEx(200, true);
imaging.SaveAsBMP(imageId, "output.bmp");
imaging.ReleaseGdPictureImage(imageId);
pdf.CloseDocument();

This example exports the first page at 200 DPI. Repeat the render and save steps for additional pages.