Click or drag to resize

PdfDocumentPageToBitmap Method (Int32, NullableInt32, NullableInt32)

Renders a single page of the PDF to a System.Drawing.Bitmap object.

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 PageToBitmap(
	int PageNumber,
	Nullable<int> ImageMaxWidth,
	Nullable<int> ImageMaxHeight
)

Parameters

PageNumber
Type: SystemInt32
The page number to be converted to an image.
ImageMaxWidth
Type: SystemNullableInt32
The target maximum width of the output images.
ImageMaxHeight
Type: SystemNullableInt32
The target maximum height of the output images.

Return Value

Type: Bitmap

[Missing <returns> documentation for "M:IronPdf.PdfDocument.PageToBitmap(System.Int32,System.Nullable{System.Int32},System.Nullable{System.Int32})"]

See Also