PdfDocumentToBitmap Method (Int32)

Rasterizes (renders) the PDF into System.Drawing.Bitmap objects. 1 Bitmap for each page.

Please add an assembly reference to System.Drawing to use this "PDF To Image" method.

Please Dispose() each Bitmap object after use.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.7.1
Syntax
public Bitmap[] ToBitmap(
	int DPI = 72
)

Parameters

DPI (Optional)
Type: SystemInt32
The resolution of the output Bitmap in 'Dots Per Inch'. Higher DPI creates larger bitmap files of higher image quality.

Return Value

Type: Bitmap
An array of System.Drawing.Bitmap image objects which can be saved, manipulated, displayed or edited programmatically.
See Also
Download DLL or Install with Nuget