Below are the steps and sample code to convert a PDF file to Bitmap images.
Steps to convert PDF to BMP
- Create a
PdfRasterizerobject using the source PDF document.
- Call the
Drawmethod by specifying the image type as Bmp, DPI and file path to save images.
Sample code - C#
PdfRasterizer rasterizer = new PdfRasterizer("doc-a.pdf"); rasterizer.Draw("output.bmp", ImageFormat.Bmp, ImageSize.Dpi96);
DynamicPDF Rasterizer for .NET is on NuGet with package ID
An example project showing this functionality can be cloned or viewed from GitHub:
DynamicPDF Rasterizer Information
More information can be found here: