Method ConvertFileAsync
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
ConvertFileAsync(string, MarkdownToPdfOptions, CancellationToken)
Async version of ConvertFile(string, MarkdownToPdfOptions).
public static Task<Attachment> ConvertFileAsync(string markdownPath, MarkdownToPdfOptions options = null, CancellationToken cancellationToken = default)
Parameters
markdownPathstringPath to the Markdown file.
optionsMarkdownToPdfOptionsOptional conversion options.
cancellationTokenCancellationTokenCancels the operation.