Convert
Contents
[
Hide
]
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class SaveContext
- class ConvertOptions
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class ConvertOptions
- class ConvertedContext
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class SaveContext
- class ConvertContext
- class ConvertOptions
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class ConvertContext
- class ConvertOptions
- class ConvertedContext
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class ConvertOptions
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class SavePageContext
- class ConvertContext
- class ConvertOptions
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class SavePageContext
- class ConvertOptions
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class ConvertOptions
- class ConvertedPageContext
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion
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
- More about document conversion basic scenarios: How to convert document in 3 steps
- Conversion use cases, advanced settings and customizations: Convert document with advanced settings
See Also
- class ConvertContext
- class ConvertOptions
- class ConvertedPageContext
- class Converter
- namespace GroupDocs.Conversion
- assembly GroupDocs.Conversion