 |
WordToPdfConvertStream(Stream) Method |
Converts the Word document read from a stream to pdf. The format is detected from the content
(docx family, doc, rtf, WordML); plain text, html and markdown have no signature and must be
named with
ConvertStream(Stream, WordFormat).
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic PdfDocument ConvertStream(
Stream stream
)
Public Function ConvertStream (
stream As Stream
) As PdfDocument
Parameters
- stream Stream
- A readable stream positioned at the start of the document. Cannot be null.
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 stream is null, or the document cannot be read or rendered.
|
See Also