ToFileAsync
Leave feedback
On this page
Asynchronously converts the document and saves the result to a file. Both source reading and output writing are performed asynchronously.
public static Task ToFileAsync(string sourcePath, string outputPath,
ConvertOptions convertOptions = null, CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| sourcePath | String | The path to the source document. |
| outputPath | String | The path where the Markdown file will be saved. |
| convertOptions | ConvertOptions | Options for the conversion. May be null. |
| cancellationToken | CancellationToken | A token to cancel the operation. |
| exception | condition |
|---|---|
| GroupDocsMarkdownException | Thrown when conversion fails. |
- class ConvertOptions
- class MarkdownConverter
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.