Click or drag to resize

PdfToImageConverter Class

The PDF to Image converter class
Inheritance Hierarchy
SystemObject
  ExpertPdfPdfToImageConverter

Namespace: ExpertPdf
Assembly: eppdftoimage (in eppdftoimage.dll) Version: 10.0
Syntax
public class PdfToImageConverter

The PdfToImageConverter type exposes the following members.

Constructors
 NameDescription
Public methodPdfToImageConverter The pdf to image converter constructor
Top
Properties
 NameDescription
Public propertyColorSpace The color space of the generated images. Default value is RGB.
Public propertyDocumentInformation PDF document information. This property is populated after the requested operation (ConvertToText) is finished.
Public propertyEndPageNumber The page number where the conversion to images will end. The default value is 0 which means that all the PDF document pages will be converted to images starting from the StartPageNumber page.
Public propertyImagesFormat The image format for the generated images.
Public propertyImagesPath The path to the disk folder where the images will be saved when the method ConvertToImagesInFolder() is used.
Public propertyImagesPrefix The prefix for extracted images file name.
Public propertyJpegQuality The quality of the JPEG images, from 0 (the smallest files) to 100 (the best quality). The default value is 91.
Public propertyLicenseKey The license key string received after the product purchase or a demo license key for the demo version of the converter. This property must be set before calling the conversion to images method. When this property is null, the converter will run in demo mode.
Public propertyPdfToolsFullPath Gets or sets the full path (including the file name) of the pdf tools engine helper file.
Public propertyPdfToolsTimeout Timeout in seconds for the current operation. Default value is 600 seconds.
Public propertyPngCompressionLevel The compression level of the PNG images, from 0 (no compression, the fastest) to 9 (the smallest files), or -1. The default value is -1: the PNG images are saved by the PNG encoder of the system (GDI+).
Public propertyResolution The resolution of the generated images in DPI. Default value is 120.
Public propertyStartPageNumber The page number from where the conversion to images will start. The default value is 1 which means the conversion to images will start from the first page.
Public propertyTiffCompression The compression of the TIFF images. The default value is PdfToImageTiffCompression.Lzw.
Public propertyUserPassword The password to be used to open the PDF document for reading: the user password or the owner password of the document. The default value is null which means that no password will be used to open the PDF document.
Top
Methods
 NameDescription
Public methodConvertPageToImage(Stream, Int32) Converts one page of the specified PDF stream to an image, at the resolution given by the Resolution property.
Public methodConvertPageToImage(String, Int32) Converts one page of the specified PDF file to an image, at the resolution given by the Resolution property.
Public methodConvertPageToImageBytes(Stream, Int32, ImageFormat) Converts one page of the specified PDF stream to an image file in memory, at the resolution given by the Resolution property.
Public methodConvertPageToImageBytes(String, Int32, ImageFormat) Converts one page of the specified PDF file to an image file in memory, at the resolution given by the Resolution property.
Public methodConvertToImages(Stream) Convert to images the PDF pages from the specified PDF stream.
Public methodConvertToImages(String) Convert to images the PDF pages from the specified PDF file.
Public methodConvertToImagesInFolder(Stream) Convert to images the PDF pages from the specified PDF stream. The images will be saved into the folder specified by ImagesPath property, in the format specified by ImagesFormat property.
Public methodConvertToImagesInFolder(String) Convert to images the PDF pages from the specified PDF file. The images will be saved into the folder specified by ImagesPath property, in the format specified by ImagesFormat property.
Public methodConvertToThumbnails(Stream, Int32, Int32) Converts the PDF pages from the specified PDF stream to thumbnails: images that fit in a box of the specified size, keeping the aspect ratio of each page.
Public methodConvertToThumbnails(String, Int32, Int32) Converts the PDF pages from the specified PDF file to thumbnails: images that fit in a box of the specified size, keeping the aspect ratio of each page.
Public methodConvertToTiff(Stream) Converts the PDF pages from the specified PDF stream to a multi-page (multi frame) TIFF image.
Public methodConvertToTiff(String) Converts the PDF pages from the specified PDF file to a multi-page (multi frame) TIFF image.
Public methodConvertToTiffInFolder(Stream) Converts the PDF pages from the specified PDF stream to a multi-page TIFF image saved into the folder specified by the ImagesPath property, as <ImagesPrefix>.tiff.
Public methodConvertToTiffInFolder(String) Converts the PDF pages from the specified PDF file to a multi-page TIFF image saved into the folder specified by the ImagesPath property, as <ImagesPrefix>.tiff.
Public methodGetPageCount(Stream) Gets the number of pages in the specified PDF stream.
Public methodGetPageCount(String) Gets the number of pages in the specified PDF file.
Top
See Also