Click or drag to resize

PdfToImageConverterConvertPageToImageBytes(String, Int32, ImageFormat) Method

Converts one page of the specified PDF file to an image file in memory, at the resolution given by the Resolution property.

Namespace: ExpertPdf
Assembly: eppdftoimage (in eppdftoimage.dll) Version: 10.0
Syntax
public byte[] ConvertPageToImageBytes(
	string pdfFilePath,
	int pageNumber,
	ImageFormat imageFormat
)

Parameters

pdfFilePath  String
The PDF file.
pageNumber  Int32
The number of the page to convert (starting with 1).
imageFormat  ImageFormat
The format of the image, for example ImageFormat.Png or ImageFormat.Jpeg. A JPEG image is saved with the JpegQuality property, a TIFF image with the TiffCompression property and a PNG image with the PngCompressionLevel property.

Return Value

Byte
The bytes of the image file.
Remarks
The StartPageNumber and EndPageNumber properties are not used and not changed.
See Also