Click or drag to resize
Pdf Library for .NET

ExcelToPdfConvertFile(String) Method

Converts the workbook at the given path to pdf. The format is taken from the file extension, or detected from the content when the extension is not one of the known ones.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public PdfDocument ConvertFile(
	string filePath
)

Parameters

filePath  String
The path of the workbook. Cannot be null or empty.

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 filePath is null or empty, the file does not exist, or the workbook cannot be read or rendered.
See Also