RtfToPdfConverterConvertStringToPdfFileAsync Method
Asynchronously converts an RTF string (raw RTF markup) to PDF and writes the result to the specified output path
Namespace: HiQPdf.NextAssembly: HiQPdf.Next.RtfToPdf (in HiQPdf.Next.RtfToPdf.dll) Version: 18.0.0
public Task ConvertStringToPdfFileAsync(
string rtfContent,
string outputPdfFilePath,
CancellationToken ct = default
)
- rtfContent String
- The RTF content as a string
- 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