Products
PDFRasterizer.NET 3.0
Created
7/3/2014
Tags
Convert PDF

This code sample explains the most basic way to convert a PDF to BMP.

//create a bitmap to draw to and a graphics object using (Bitmap bitmap = new Bitmap((int)pdfPage.Width, (int)pdfPage.Height)) using (Graphics graphics = Graphics.FromImage(bitmap)) { //draw the image from the first page to the graphics object, which is connected to the bitmap object pdfPage.Draw(graphics); bitmap.Save("out.png"); } //open the bitmap in the standard application System.Diagnostics.Process.Start("out.png");

}]]>