PdfDocument
SaveAsImage Method (Int32, PdfImageType, Int32, Int32)
|
Saves PDF document page as image,Set PdfImageType and image Dpi.
Namespace:
Spire.Pdf
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public Image SaveAsImage(
int pageIndex,
PdfImageType type,
int dpiX,
int dpiY
)
Public Function SaveAsImage (
pageIndex As Integer,
type As PdfImageType,
dpiX As Integer,
dpiY As Integer
) As Image
public:
Image^ SaveAsImage(
int pageIndex,
PdfImageType type,
int dpiX,
int dpiY
)
member SaveAsImage :
pageIndex : int *
type : PdfImageType *
dpiX : int *
dpiY : int -> Image
Parameters
-
pageIndex
-
Type:
System
Int32
Page index.
-
type
-
Type:
Spire.Pdf.Graphics
PdfImageType
PdfImageType type
-
dpiX
-
Type:
System
Int32
X resolution
-
dpiY
-
Type:
System
Int32
Y resolution
Return Value
Type:
Image
Returns page as Image
See Also