IDocumentFactoryLoad Method (Stream, LoadOptions)
Loads a new document from the specified stream.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 19.5
Syntax
Document Load(
	Stream stream,
	LoadOptions loadOptions
)

Parameters

stream
Type: System.IOStream
The stream to load document from.
loadOptions
Type: GroupDocs.WatermarkLoadOptions
Additional options to use when loading a document.

Return Value

Type: Document
Instance of appropriate descendant of Document class.
Exceptions
ExceptionCondition
UnsupportedFileTypeExceptionSupplied document type is not supported.
See Also