 |
WordToPdfConvertFile(String) Method |
Converts the Word document 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.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic PdfDocument ConvertFile(
string filePath
)
Public Function ConvertFile (
filePath As String
) As PdfDocument
Parameters
- filePath String
- The path of the Word document. 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| Exception | Condition |
|---|
| WordToPdfException |
Thrown when filePath is null or empty, the file does not exist, or the
document cannot be read or rendered.
|
See Also