Convert

Convert(Func<SaveContext, Stream>, ConvertOptions, CancellationToken)

Converts source document. Saves the whole converted document.

public void Convert(Func<SaveContext, Stream> targetStreamProvider, ConvertOptions convertOptions, 
    CancellationToken cancellationToken = default)
Parameter Type Description
targetStreamProvider Func`2 The delegate that saves converted document to a stream.
convertOptions ConvertOptions The convert options specific to desired target file type.
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(ConvertOptions, Action<ConvertedContext>, CancellationToken)

Converts source document. Saves the whole converted document.

public void Convert(ConvertOptions convertOptions, Action<ConvertedContext> documentCompleted, 
    CancellationToken cancellationToken = default)
Parameter Type Description
convertOptions ConvertOptions The convert options specific to desired target file type.
documentCompleted Action`1 The delegate that receive converted document stream. The ConvertedContext
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(Func<SaveContext, Stream>, Func<ConvertContext, ConvertOptions>, CancellationToken)

Converts source document. Saves the whole converted document.

public void Convert(Func<SaveContext, Stream> targetStreamProvider, 
    Func<ConvertContext, ConvertOptions> convertOptionsProvider, 
    CancellationToken cancellationToken = default)
Parameter Type Description
targetStreamProvider Func`2 A delegate that provides the stream to save the converted document. The save context
convertOptionsProvider Func`2 Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type. The ConvertContext
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(Func<ConvertContext, ConvertOptions>, Action<ConvertedContext>, CancellationToken)

Converts source document. Saves the whole converted document.

public void Convert(Func<ConvertContext, ConvertOptions> convertOptionsProvider, 
    Action<ConvertedContext> documentCompleted, CancellationToken cancellationToken = default)
Parameter Type Description
convertOptionsProvider Func`2 Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type. The ConvertContext
documentCompleted Action`1 The delegate that receive converted document stream. The ConvertedContext
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(string, ConvertOptions, CancellationToken)

Converts source document. Saves the whole converted document.

public void Convert(string filePath, ConvertOptions convertOptions, 
    CancellationToken cancellationToken = default)
Parameter Type Description
filePath String The file path to the source document.
convertOptions ConvertOptions The convert options specific to desired target file type.
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(Func<SavePageContext, Stream>, Func<ConvertContext, ConvertOptions>, CancellationToken)

Converts source document. Saves the converted document page by page.

public void Convert(Func<SavePageContext, Stream> targetStreamProvider, 
    Func<ConvertContext, ConvertOptions> convertOptionsProvider, 
    CancellationToken cancellationToken = default)
Parameter Type Description
targetStreamProvider Func`2 The delegate that saves converted document to a stream. The SavePageContext
convertOptionsProvider Func`2 Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type. The ConvertContext>
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(Func<SavePageContext, Stream>, ConvertOptions, CancellationToken)

Converts source document. Saves the converted document page by page.

public void Convert(Func<SavePageContext, Stream> targetStreamProvider, 
    ConvertOptions convertOptions, CancellationToken cancellationToken = default)
Parameter Type Description
targetStreamProvider Func`2 The delegate that saves converted document to a stream. The SavePageContext
convertOptions ConvertOptions The convert options specific to desired target file type.
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(ConvertOptions, Action<ConvertedPageContext>, CancellationToken)

Converts source document. Saves the converted document page by page.

public void Convert(ConvertOptions convertOptions, Action<ConvertedPageContext> documentCompleted, 
    CancellationToken cancellationToken = default)
Parameter Type Description
documentCompleted ConvertOptions The delegate that receive converted document page stream. The name of the source fileThe target file typePage numberThe converted file content stream
convertOptions Action`1 The convert options specific to desired target file type.
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also


Convert(Func<ConvertContext, ConvertOptions>, Action<ConvertedPageContext>, CancellationToken)

Converts source document. Saves the converted document page by page.

public void Convert(Func<ConvertContext, ConvertOptions> convertOptionsProvider, 
    Action<ConvertedPageContext> documentCompleted, CancellationToken cancellationToken = default)
Parameter Type Description
convertOptionsProvider Func`2 Convert options provider. Will be called for each conversion to provide specific convert options to desired target document type. The ConvertContext>
documentCompleted Action`1 The delegate that receive converted document page stream. The ConvertedPageContext
cancellationToken CancellationToken The cancellation token.

Remarks

Learn more

See Also