MarkdownToPdfConverterConvertFileToPdfAsync Method

Asynchronously converts a Markdown file to a PDF byte array

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next.MarkdownToPdf (in HiQPdf.Next.MarkdownToPdf.dll) Version: 18.0.0
C#
public Task<byte[]> ConvertFileToPdfAsync(
	string markdownFilePath,
	CancellationToken ct = default
)

Parameters

markdownFilePath  String
Full path to the input Markdown file
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
Generated PDF bytes

See Also