Converter

Converter class

Represents a group of methods intended to convert a variety of different types of documents using a single line of code.

public static class Converter

Methods

NameDescription
static Convert(string, string)Converts the given input document into the output document using specified input output file names and its extensions.
static Convert(Stream, Stream, SaveFormat)Converts the given input document into a single output document using specified input and output streams.
static Convert(Stream, Stream, SaveOptions)Converts the given input document into a single output document using specified input and output streams.
static Convert(string, string, SaveFormat)Converts the given input document into the output document using specified input output file names and the final document format.
static Convert(string, string, SaveOptions)Converts the given input document into the output document using specified input output file names and save options.
static Convert(Stream, LoadOptions, Stream, SaveOptions)Converts the given input document into a single output document using specified input and output streams.
static Convert(string, LoadOptions, string, SaveOptions)Converts the given input document into the output document using specified input output file names its load/save options.
static ConvertToImages(DocumentImageSaveOptions)Converts the pages of the specified document to images using the specified save options and returns an array of streams containing the images.
static ConvertToImages(DocumentSaveFormat)Converts the pages of the specified document to images in the specified format and returns an array of streams containing the images.
static ConvertToImages(Stream, ImageSaveOptions)Converts the pages of the specified input stream to images using the specified save options and returns an array of streams containing the images.
static ConvertToImages(Stream, SaveFormat)Converts the pages of the specified input stream to images in the specified format and returns an array of streams containing the images.
static ConvertToImages(string, ImageSaveOptions)Converts the pages of the specified input file to images using the specified save options and returns an array of streams containing the images.
static ConvertToImages(string, SaveFormat)Converts the pages of the specified input file to images in the specified format and returns an array of streams containing the images.
static ConvertToImages(string, string)Converts the pages of the specified input file to image files.
static ConvertToImages(Stream, LoadOptionsImageSaveOptions)Converts the pages of the specified input stream to images using the provided load and save options, and returns an array of streams containing the images.
static ConvertToImages(string, string, ImageSaveOptions)Converts the pages of the specified input file to image files using the specified save options.
static ConvertToImages(string, string, SaveFormat)Converts the pages of the specified input file to image files in the specified format.
static ConvertToImages(string, LoadOptions, string, ImageSaveOptions)Converts the pages of the specified input file to image files using the provided load and save options.

Remarks

The specified input and output files or streams, along with the desired save format, are used to convert the given input document of the one format into the output document of the other specified format.

The convert functionality supports over 35+ different file formats.

The ConvertToImages group of methods are designed to transform documents into images, with each page being converted into a separate image file. These methods also convert PDF documents directly to fixed-page formats without loading them into the document model, which enhances both performance and accuracy.

With PageSet, you can specify a particular set of pages to convert into images.

See Also