MarkdownToPdfConverterConvertStringToPdfAsync Method

Asynchronously converts a Markdown string to a PDF byte array

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next.MarkdownToPdf (in Winnovative.Pdf.Next.MarkdownToPdf.dll) Version: 20.0.0
C#
public Task<byte[]> ConvertStringToPdfAsync(
	string markdownContent,
	string baseUrl,
	CancellationToken ct = default
)

Parameters

markdownContent  String
The Markdown content as a string
baseUrl  String
Can be used to resolve relative resources
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

Return Value

TaskByte
PDF bytes representing the rendered document

See Also