WordToPdfConverterConvertToPdfFileAsync(Byte, String, CancellationToken) Method

Asynchronously Converts a Word document from a byte array to PDF and saves the result to a specified file path

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next.WordToPdf (in HiQPdf.Next.WordToPdf.dll) Version: 18.0.0
C#
public Task ConvertToPdfFileAsync(
	byte[] wordBytes,
	string outputPdfFilePath,
	CancellationToken ct = default
)

Parameters

wordBytes  Byte
The content of the DOCX file as a byte array
outputPdfFilePath  String
The full path where the resulting PDF file will be saved
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

Task
A task that represents the asynchronous operation

See Also