Class PdfConverter

PdfConverter class

Represents a class to convert a pdf file’s each page to images, supporting BMP, JPEG, PNG and TIFF now. Supported content in pdfs: pictures, form, comment.

public sealed class PdfConverter : Facade

Constructors

NameDescription
PdfConverter()Initializes new PdfConverter object.
PdfConverter(Document)Initializes new PdfConverter object on base of the document.

Properties

NameDescription
CoordinateType { get; set; }Gets or sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
Document { get; }Gets the document facade is working on.
EndPage { get; set; }Gets or sets end position which you want to convert.
FormPresentationMode { get; set; }Gets or sets form presentation mode.
PageCount { get; }Gets the page count.
Password { get; set; }Gets or sets document OwnerPassword.
RenderingOptions { get; set; }Gets or sets rendering options.
Resolution { get; set; }Gets or sets resolution during convertting. The higher resolution, the slower convertting speed. The default value is 150.
StartPage { get; set; }Gets or sets start position which you want to convert. The minimal value is 1.
UserPassword { get; set; }Gets or sets document UserPassword.

Methods

NameDescription
virtual BindPdf(Document)Initializes the facade.
override BindPdf(Stream)Binds a Pdf Stream for convert.
override BindPdf(string)Binds a Pdf file for converting.
override Close()Close the instance of PdfConverter and release the resources.
Dispose()Disposes the facade.
DoConvert()Do some initial works for converting a pdf document to images.
GetNextImage(Stream)Saves image to stream with default image format - jpeg.
GetNextImage(string)Saves image to file with default image format - jpeg.
GetNextImage(Stream, ImageFormat)Saves image to stream with given image format.
GetNextImage(Stream, PageSize)Saves image to stream with given page size.
GetNextImage(string, ImageFormat)Saves image to file with the givin image format.
GetNextImage(string, PageSize)Saves image to file with ith given page size and default image format - jpeg.
GetNextImage(Stream, ImageFormat, int)Saves image to stream with given image format and quality.
GetNextImage(Stream, PageSize, ImageFormat)Saves image to stream with given page size.
GetNextImage(string, ImageFormat, int)Saves image to file with given image format and quality.
GetNextImage(string, PageSize, ImageFormat)Saves image to file with given page size and image format.
GetNextImage(Stream, ImageFormat, int, int)Saves image to stream with the givin image format, size and quality.
GetNextImage(Stream, PageSize, ImageFormat, int)Saves image to stream with given page size, image format and quality.
GetNextImage(string, ImageFormat, int, int)Saves image to file with the given image format and dimensions.
GetNextImage(string, PageSize, ImageFormat, int)Saves image to file with given page size, image format and quality.
GetNextImage(Stream, ImageFormat, double, double, int)Saves image to stream with the givin image format, size and quality.
GetNextImage(Stream, ImageFormat, int, int, int)Saves image to stream with the givin image format, dimensions and quality.
GetNextImage(string, ImageFormat, double, double, int)Saves image to file with the givin image format, image size, and quality.
GetNextImage(string, ImageFormat, int, int, int)Saves image to file with the given image format, dimensions and quality.
HasNextImage()Indicates whether the pdf file has more images or not.
SaveAsTIFF(Stream)Converts each pages of a pdf document to images and saves images to a single TIFF stream.
SaveAsTIFF(string)Converts each pages of a pdf document to images and saves images to a single TIFF file.
SaveAsTIFF(Stream, CompressionType)Converts each pages of a pdf document to images and saves images to a single TIFF file.
SaveAsTIFF(Stream, PageSize)Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
SaveAsTIFF(Stream, TiffSettings)Converts each pages of a pdf document to images and saves images to a single TIFF stream.
SaveAsTIFF(string, CompressionType)Converts each pages of a pdf document to images and saves images to a single TIFF file.
SaveAsTIFF(string, PageSize)Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
SaveAsTIFF(string, TiffSettings)Converts each pages of a pdf document to images with and saves images to a single TIFF file.
SaveAsTIFF(Stream, int, int)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(Stream, PageSize, TiffSettings)Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
SaveAsTIFF(Stream, TiffSettings, IIndexBitmapConverter)Converts each pages of a pdf document to images and saves images to a single TIFF stream.
SaveAsTIFF(string, int, int)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFF(string, PageSize, TiffSettings)Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
SaveAsTIFF(string, TiffSettings, IIndexBitmapConverter)Converts each pages of a pdf document to images with and saves images to a single TIFF file.
SaveAsTIFF(Stream, int, int, CompressionType)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(Stream, int, int, TiffSettings)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(string, int, int, CompressionType)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFF(string, int, int, TiffSettings)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFF(Stream, int, int, TiffSettings, IIndexBitmapConverter)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
SaveAsTIFF(string, int, int, TiffSettings, IIndexBitmapConverter)Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
SaveAsTIFFClassF(Stream)Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
SaveAsTIFFClassF(string)Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
SaveAsTIFFClassF(Stream, PageSize)Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
SaveAsTIFFClassF(string, PageSize)Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
SaveAsTIFFClassF(Stream, int, int)Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
SaveAsTIFFClassF(string, int, int)Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
static MergeImages(List<Stream>, ImageFormat, ImageMergeMode, int?, int?)Merges list of image streams as one image stream. Png/jpg/tiff outputs formats are supported, in case of using non supported format output stream encoded as Jpeg by default.
static MergeImagesAsTiff(List<Stream>)Merges list of tiff streams as one multiple frames tiff stream.

See Also