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: ExpertPdfAssembly: eppdftoimage (in eppdftoimage.dll) Version: 10.0
Syntaxpublic byte[] ConvertPageToImageBytes(
string pdfFilePath,
int pageNumber,
ImageFormat imageFormat
)
Public Function ConvertPageToImageBytes (
pdfFilePath As String,
pageNumber As Integer,
imageFormat As ImageFormat
) As Byte()
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
ByteThe bytes of the image file.
RemarksThe StartPageNumber and EndPageNumber properties are not used and not changed.
See Also