Click or drag to resize
Pdf Library for .NET

WordToPdfConvertStream(Stream, WordFormat) Method

Converts the Word document read from a stream to pdf, reading it as the given format.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfDocument ConvertStream(
	Stream stream,
	WordFormat format
)

Parameters

stream  Stream
A readable stream positioned at the start of the document. Cannot be null.
format  WordFormat
The format the stream is read as.

Return Value

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