Click or drag to resize

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
)

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