MarkdownToPdfConverterConvertStringToPdfFileAsync Method
Asynchronously converts a Markdown string to PDF and writes the result to the specified output path
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next.MarkdownToPdf (in Winnovative.Pdf.Next.MarkdownToPdf.dll) Version: 20.0.0
public Task ConvertStringToPdfFileAsync(
string markdownContent,
string baseUrl,
string outputPdfFilePath,
CancellationToken ct = default
)
- markdownContent String
- The Markdown content as a string
- baseUrl String
- Can be used to resolve relative resources
- outputPdfFilePath String
- Output PDF path
- ct CancellationToken (Optional)
-
A cancellation token that can be used to cancel the asynchronous operation. When cancellation
is requested the task returned by this method will complete by throwing
OperationCanceledException as soon as possible
Task
A task that represents the asynchronous operation