ExcelToPdfConverterConvertExcelStream(Stream, Int32) Method

Converts an Excel document read from a stream to PDF and returns the rendered PDF document into a memory buffer. You can specify the list of worksheets to be exported to PDF

Definition

Namespace: Winnovative.ExcelToPdf
Assembly: WnvExcelToPdf_NetCore (in WnvExcelToPdf_NetCore.dll) Version: 12.0.0
C#
public byte[] ConvertExcelStream(
	Stream excelStream,
	int[] worksheetIndexes
)

Parameters

excelStream  Stream
The stream containing the Excel document to convert to PDF
worksheetIndexes  Int32
The zero based indexes in workbook of the worksheets to export to PDF. The worksheets are exported in the order given by this list

Return Value

Byte
An array of bytes containing the binary representation of the PDF document.

See Also