Convert PDF to bitmap (BMP) in C#
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.