RtfToPdfConverterConvertStringToPdfAsync Method

Asynchronously converts an RTF string (raw RTF markup like "{\rtf1...}") to a PDF byte array

Definition

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

Parameters

rtfContent  String
The RTF content as a string
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