O2S.Components.PDF4NET.Render Documentation
ConvertPageToImage(Double,Stream,PDFPageImageFormat) Method



O2S.Components.PDF4NET.Rendering Namespace > PDFPageRenderer Class > ConvertPageToImage Method : ConvertPageToImage(Double,Stream,PDFPageImageFormat) Method
The resolution used for converting the vector PDF page to raster.
Output stream where the image will be saved.
The format used for saving the page image.
Converts the PDF page to an image.
Syntax
'Declaration
 
Public Overloads Function ConvertPageToImage( _
   ByVal resolution As Double, _
   ByVal stream As Stream, _
   ByVal pageImageFormat As PDFPageImageFormat _
) As O2S.Components.PDF4NET.Graphics.PDFSize
'Usage
 
Dim instance As PDFPageRenderer
Dim resolution As Double
Dim stream As Stream
Dim pageImageFormat As PDFPageImageFormat
Dim value As O2S.Components.PDF4NET.Graphics.PDFSize
 
value = instance.ConvertPageToImage(resolution, stream, pageImageFormat)
public O2S.Components.PDF4NET.Graphics.PDFSize ConvertPageToImage( 
   double resolution,
   Stream stream,
   PDFPageImageFormat pageImageFormat
)
public:
O2S.Components.PDF4NET.Graphics.PDFSize^ ConvertPageToImage( 
   double resolution,
   Stream^ stream,
   PDFPageImageFormat pageImageFormat
) 

Parameters

resolution
The resolution used for converting the vector PDF page to raster.
stream
Output stream where the image will be saved.
pageImageFormat
The format used for saving the page image.

Return Value

Image size in pixels.
Requirements

Supported .NET Platforms: .NET 4.0 and higher, Windows Forms, ASP.NET, Windows Presentation Foundation 4.x, Silverlight 5, WinRT, Universal Windows Platform, Xamarin Mac, iOS & Android, Portable Class Library, .NET Core, .NET Standard


Target Platforms:Windows 10, Windows 8.1, Windows 8 , Windows 7, Windows Vista SP1 or later, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

PDFPageRenderer Class
PDFPageRenderer Members
Overload List