Method ConvertToFileAsync
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
ConvertToFileAsync(string, string, MarkdownToPdfOptions, CancellationToken)
Async version of ConvertToFile(string, string, MarkdownToPdfOptions).
public static Task ConvertToFileAsync(string markdown, string outputPath, MarkdownToPdfOptions options = null, CancellationToken cancellationToken = default)
Parameters
markdownstringThe Markdown content to convert.
outputPathstringPath where the output PDF will be written.
optionsMarkdownToPdfOptionsOptional conversion options.
cancellationTokenCancellationTokenCancels the operation.