RtfToPdfConverterConvertStreamToPdfAsync Method

Asynchronously converts an RTF stream to a PDF byte array

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next.RtfToPdf (in HiQPdf.Next.RtfToPdf.dll) Version: 18.0.0
C#
public Task<byte[]> ConvertStreamToPdfAsync(
	Stream rtfStream,
	CancellationToken ct = default
)

Parameters

rtfStream  Stream
The RTF stream providing the RTF content bytes
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