Examples

Convert PDF to BMP

DynamicPDF Rasterizer for .NET easily converts any PDF to a bitmap (BMP) image. The following C# example shows you how.

Watch the Video

How to Convert a PDF to Bitmap

The following steps and C# sample code illustrates converting a PDF file to a bitmap image.


Steps for Converting


  1. Create a PdfRasterizer object instance using the source PDF document.
  2. Add the Draw method by specifying the file path to save the image, the image type as bmp, and the image size as Dpi96 (96 DPI).

Sample code - C#


PdfRasterizer rasterizer = new PdfRasterizer("DocumentA.pdf");
rasterizer.Draw("pdf-to-bmp-output.bmp", ImageFormat.Bmp, ImageSize.Dpi96);

PDF converted to four images.

GitHub Project

Examples are provided in C# and VB.NET. Clone or view the example project at GitHub. This example contained on this page are in the following files.


Clone or View Example Project on GitHub

Getting Started


Get started easily by installing DynamicPDF Rasterizer for .NET through NuGet or manually. Then, refer to the documentation for more information on using and purchasing.


NuGet Package


The easiest way to install DynamicPDF Rasterizer for .NET is by obtaining the NuGet package using Visual Studio's Package Manager. You can also obtain the NuGet package by downloading it directly. Refer to the installation documentation for more information.

NuGet Package ID: ceTe.DynamicPDF.Rasterizer.NET

DynamicPDF Rasterizer Information


DynamicPDF Rasterizer for .NET is a user-friendly .NET library that quickly converts PDF documents to images. With a free Evaluation Edition to try and with flexible and royalty-free licensing options, why not start using DynamicPDF Rasterizer for .NET today!


Why Choose DynamicPDF?

  • Transparent Pricing
  • Lots of Features
  • Easy to Use
  • Great Support
  • Efficient Performance
  • Product Maturity (Over 22 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

We’re Not The Only Ones That Think We’re Great!