PdfPrint.SavePdfPageAsImage Method (String, String, Int32, Int32, Single, Single, PdfPrint.ColorType, Int64, String, PdfPrint.ImageType, Boolean, PdfPrint.ColorBitsType)Terminal Works - PDF Printing.Net Library
Saves pdf page as an image. Supported image types are BMP, TIFF, GIF, JPG/JPEG and PNG.

Namespace: PdfPrintingNet
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax

public PdfPrint. Status SavePdfPageAsImage(
	string fileName,
	string outputFileName,
	int pageNumber,
	int zoomFactor,
	float xResolution,
	float yResolution,
	PdfPrint. ColorType colorType,
	long quality,
	string password,
	PdfPrint. ImageType imageType,
	bool checkPDFFile,
	PdfPrint. ColorBitsType colorBits
)

Parameters

fileName
Type: System.String
PDF file name
outputFileName
Type: System.String
Output image file name
pageNumber
Type: System.Int32
PDF page number
zoomFactor
Type: System.Int32
Zoom factor. Valid values from 1 to 10. Value 5 is the closest one to original PDF page size.
xResolution
Type: System.Single
X Resolution of the output image.
yResolution
Type: System.Single
Y resolution of the output image.
colorType
Type: PdfPrintingNet.PdfPrint.ColorType
Color type - BW, Gray, Color, Same as in the PDF.
quality
Type: System.Int64
Image quality in % (between 0 and 100)
password
Type: System.String
PDF Password - pdf file password
imageType
Type: PdfPrintingNet.PdfPrint.ImageType
Image type of output image file
checkPDFFile
Type: System.Boolean
Check if PDF file and page number is valid
colorBits
Type: PdfPrintingNet.PdfPrint.ColorBitsType
24 or 32 bits per pixel for the image in color.Ignored if a selected color type is BW or Gray.The default is 32 bits.

Return Value

Type: PdfPrint.Status
Status, if unexpected error returns exception.
See Also

Reference