ExcelToPdfConverterConvertToPdfFileAsync(Byte, String, CancellationToken) Method
Asynchronously converts an Excel document from a byte array to PDF and saves the result to a specified file path
Namespace: HiQPdf.NextAssembly: HiQPdf.Next.ExcelToPdf (in HiQPdf.Next.ExcelToPdf.dll) Version: 18.0.0
public Task ConvertToPdfFileAsync(
byte[] excelBytes,
string outputPdfFilePath,
CancellationToken ct = default
)
- excelBytes Byte
- The content of the .xlsx 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
Task
A task that represents the asynchronous operation