Converter

Converter class

Represents main class that controls document conversion process.

public sealed class Converter : IDisposable

Constructors

Name Description
Converter(Func<Stream>) Initializes new instance of Converter class.
Converter(string) Initializes new instance of Converter class.
Converter(Func<Stream>, Func<ConverterSettings>) Initializes new instance of Converter class.
Converter(string, Func<ConverterSettings>) Initializes new instance of Converter class.
Converter(Func<Stream>, Func<LoadContext, LoadOptions>, Func<ConverterSettings>) Initializes new instance of Converter class.
Converter(string, Func<LoadContext, LoadOptions>, Func<ConverterSettings>) Initializes new instance of Converter class.

Methods

Name Description
Convert(ConvertOptions, Action<ConvertedContext>, CancellationToken) Converts source document. Saves the whole converted document.
Convert(ConvertOptions, Action<ConvertedPageContext>, CancellationToken) Converts source document. Saves the converted document page by page.
Convert(Func<ConvertContext, ConvertOptions>, Action<ConvertedContext>, CancellationToken) Converts source document. Saves the whole converted document.
Convert(Func<ConvertContext, ConvertOptions>, Action<ConvertedPageContext>, CancellationToken) Converts source document. Saves the converted document page by page.
Convert(Func<SaveContext, Stream>, ConvertOptions, CancellationToken) Converts source document. Saves the whole converted document.
Convert(Func<SaveContext, Stream>, Func<ConvertContext, ConvertOptions>, CancellationToken) Converts source document. Saves the whole converted document.
Convert(Func<SavePageContext, Stream>, ConvertOptions, CancellationToken) Converts source document. Saves the converted document page by page.
Convert(Func<SavePageContext, Stream>, Func<ConvertContext, ConvertOptions>, CancellationToken) Converts source document. Saves the converted document page by page.
Convert(string, ConvertOptions, CancellationToken) Converts source document. Saves the whole converted document.
Dispose() Releases resources.
GetDocumentInfo() Gets source document info - pages count and other document properties specific to the file type.
GetDocumentInfo<T>() Gets source document info - pages count and other document properties specific to the file type.
GetPossibleConversions() Gets possible conversions for the source document.
IsDocumentPasswordProtected() Checks is source document is password protected
static GetAllPossibleConversions() Gets all supported conversions
static GetPossibleConversions(string) Gets supported conversions for provided document extension

See Also