FluentConverter

FluentConverter class

Class for fluent conversion setup.

public static class FluentConverter

Methods

Name Description
static Load(Func<Stream>) Configure source document stream
static Load(Func<Stream[]>) Configure set of source documents streams
static Load(string) Configure source document for conversion
static Load(string[]) Configure set of source documents
static WithSettings(Func<ConverterSettings>) Configure conversion settings

Remarks

Sample fluent conversion usage:

var converter = FluentConverter.Create();
FluentConverter.Load("")
    .ConvertTo("")
    .Convert();
FluentConverter.WithSettings(() => new ConverterSettings())
    .Load("").WithOptions(new PdfLoadOptions())
    .ConvertTo("").WithOptions(new PdfConvertOptions())
    .OnConversionCompleted(convertedDocumentStream => { })
    .Convert();
FluentConverter.Load("").WithOptions(new PdfLoadOptions())
    .ConvertByPageTo((number => new FileStream("", FileMode.Create))).WithOptions(new PdfConvertOptions())
    .OnConversionCompleted((number, stream) => {})
    .Convert();
FluentConverter.Load("").GetPossibleConversions();
FluentConverter.Load("").GetDocumentInfo();
FluentConverter.Load("").WithOptions(new PdfLoadOptions()).GetPossibleConversions();
FluentConverter.Load("").WithOptions(new PdfLoadOptions()).GetDocumentInfo();

See Also