PDFView4NET WinForms Edition


O2S.Components.PDFRender4NET Namespace > PDFFile Class > GetPageImage Method : GetPageImage(Int32,Double,PDFPrintContent) Method
The number of the page to render.
The resolution the page will be rendered at.
The page content to be rendered.
GetPageImage(Int32,Double,PDFPrintContent) Method
Renders a PDF page to a System.Drawing.Bitmap object.
Syntax
'Declaration
 
Public Overloads Function GetPageImage( _
   ByVal pageNumber As Integer, _
   ByVal resolution As Double, _
   ByVal printContent As PDFPrintContent _
) As Bitmap
'Usage
 
Dim instance As PDFFile
Dim pageNumber As Integer
Dim resolution As Double
Dim printContent As PDFPrintContent
Dim value As Bitmap
 
value = instance.GetPageImage(pageNumber, resolution, printContent)

Parameters

pageNumber
The number of the page to render.
resolution
The resolution the page will be rendered at.
printContent
The page content to be rendered.

Return Value

A System.Drawing.Bitmap object representing the PDF page.
Requirements

Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025

See Also