DocumentFactoryLoad Method (String, LoadOptions)
Loads a new document from the specified file.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 19.5
Syntax
public Document Load(
	string filePath,
	LoadOptions loadOptions
)

Parameters

filePath
Type: SystemString
The file path 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.

Implements

IDocumentFactoryLoad(String, LoadOptions)
Exceptions
ExceptionCondition
UnsupportedFileTypeExceptionSupplied document type is not supported.
See Also