Watermarker Constructor (Stream, LoadOptions)
Initializes a new instance of the Watermarker class with the specified stream and load options.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public Watermarker(
	Stream document,
	LoadOptions options
)

Parameters

document
Type: System.IOStream
The stream to load document from.
options
Type: GroupDocs.Watermark.OptionsLoadOptions
Additional options to use when loading a document.
Exceptions
ExceptionCondition
UnsupportedFileTypeExceptionSupplied document type is not supported.
InvalidPasswordExceptionSupplied password is incorrect.
Remarks
Learn more about loading documents Loading documents.
Examples
Load encrypted PDF document using password
C#
PdfLoadOptions loadOptions = new PdfLoadOptions();
loadOptions.Password = "123";
using (FileStream fileStream = File.Open(@"C:\Documents\test.pdf", FileMode.Open))
using (Watermarker watermarker = new Watermarker(fileStream, loadOptions))
{
    // ...
}
See Also