Click or drag to resize
Pdf Library for .NET

ExcelToPdfConvertStream(Stream) Method

Converts the workbook read from a stream to pdf. The format is detected from the content (xlsx family, xls, SpreadsheetML, csv); tab-separated values and markdown must be named with ConvertStream(Stream, ExcelFormat).

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public PdfDocument ConvertStream(
	Stream stream
)

Parameters

stream  Stream
A readable stream positioned at the start of the workbook. Cannot be null.

Return Value

PdfDocument
A PdfDocument containing the converted content. The caller is responsible for saving and closing the returned document.
Exceptions
ExceptionCondition
ExcelToPdfException Thrown when stream is null, or the workbook cannot be read or rendered.
See Also