Click or drag to resize

PdfDocumentToBitmap Method (IEnumerableInt32)

Rasterizes (renders) the PDF into System.Drawing.Bitmap objects.

Specific pages may be selected using the PageNumbers parameter.

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: 4.4.9.15720 (4.4.9.0)
Syntax
public Bitmap[] ToBitmap(
	IEnumerable<int> PageNumbers
)

Parameters

PageNumbers
Type: System.Collections.GenericIEnumerableInt32
Specific page numbers may be given to only convert part of the PDF document to images

Return Value

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