DocumentFactoryLoadTDocument Method (Stream)
Loads a new document from the specified stream.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 19.5
Syntax
public TDocument Load<TDocument>(
	Stream stream
)
where TDocument : Document

Parameters

stream
Type: System.IOStream
The stream to load document from.

Type Parameters

TDocument
Expected document type (according to specified stream content).

Return Value

Type: TDocument
Instance of TDocument class.

Implements

IDocumentFactoryLoadTDocument(Stream)
Exceptions
ExceptionCondition
UnsupportedFileTypeExceptionSupplied document type is not supported.
See Also