ExcelToPdfConverterConvertToPdf(String) Method

Converts an Excel file from the specified file path to a PDF byte array. The input file must be a valid .xlsx format document. The resulting PDF content is returned as a byte array, which can be saved to disk, sent over a network, or written directly to a response stream

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next.ExcelToPdf (in Winnovative.Pdf.Next.ExcelToPdf.dll) Version: 20.0.0
C#
public byte[] ConvertToPdf(
	string excelFilePath
)

Parameters

excelFilePath  String
The full path to the .xlsx file that will be converted to PDF

Return Value

Byte
A byte array containing the generated PDF document

See Also