Click or drag to resize

PdfToImageConverterConvertPageToImage(Stream, Int32) Method

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

Namespace: ExpertPdf.Anywhere
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public byte[] ConvertPageToImage(
	Stream pdfStream,
	int pageNumber
)

Parameters

pdfStream  Stream
The PDF stream. It can be for example a MemoryStream or a FileStream.
pageNumber  Int32
The number of the page to convert (starting with 1).

Return Value

Byte
The image of the page, encoded in the format given by the ImagesFormat property.
Remarks
The StartPageNumber and EndPageNumber properties are not used and not changed.
See Also