ExcelToPdfConverterConvertToPdfFileAsync(String, String, CancellationToken) Method

Asynchronously converts an Excel document from a file path to PDF and saves the result to a specified file path

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next.ExcelToPdf (in Winnovative.Pdf.Next.ExcelToPdf.dll) Version: 20.0.0
C#
public Task ConvertToPdfFileAsync(
	string excelFilePath,
	string outputPdfFilePath,
	CancellationToken ct = default
)

Parameters

excelFilePath  String
The full path to the .xlsx file that will be converted to PDF
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