 |
ExcelToPdfConvertBytes(Byte, ExcelFormat) Method |
Converts a workbook held in memory to pdf, reading it as the given format.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntaxpublic PdfDocument ConvertBytes(
byte[] data,
ExcelFormat format
)
Public Function ConvertBytes (
data As Byte(),
format As ExcelFormat
) As PdfDocument
Parameters
- data Byte
- The bytes of the workbook. Cannot be null.
- format ExcelFormat
- The format the bytes are read as.
Return Value
PdfDocument
A
PdfDocument containing the converted content. The caller is responsible for
saving and closing the returned document.
Exceptions| Exception | Condition |
|---|
| ExcelToPdfException |
Thrown when data is null, or the workbook cannot be read or rendered.
|
See Also