PdfPrintSavePdfPageAsImage Method (Byte, String, Int32, Int32, Single, Single, PdfPrintColorType, Int64, String, PdfPrintImageType, Boolean, PdfPrintColorBitsType)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 PdfPrintStatus SavePdfPageAsImage(
	byte[] pdfArray,
	string outputFileName,
	int pageNumber,
	int zoomFactor,
	float xResolution,
	float yResolution,
	PdfPrintColorType colorType,
	long quality,
	string password,
	PdfPrintImageType imageType,
	bool checkPDFFile,
	PdfPrintColorBitsType colorBits
)

Parameters

pdfArray
Type: SystemByte
PDF content
outputFileName
Type: SystemString
Output image file name
pageNumber
Type: SystemInt32
PDF page number
zoomFactor
Type: SystemInt32
Zoom factor. Valid values from 1 to 10. Value 5 is the closest one to original PDF page size.
xResolution
Type: SystemSingle
X Resolution of the output image.
yResolution
Type: SystemSingle
Y resolution of the output image.
colorType
Type: PdfPrintingNetPdfPrintColorType
Color type - BW, Gray, Color, Same as in the PDF.
quality
Type: SystemInt64
Image quality in % (between 0 and 100)
password
Type: SystemString
PDF Password - pdf file password
imageType
Type: PdfPrintingNetPdfPrintImageType
Image type of output image file
checkPDFFile
Type: SystemBoolean
Check if PDF file and page number is valid
colorBits
Type: PdfPrintingNetPdfPrintColorBitsType
Color bits

Return Value

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

Reference