Watermarker Constructor (String, LoadOptions)
Initializes a new instance of the Watermarker class with the specified document path and load options.

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

Parameters

filePath
Type: SystemString
The file path 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 (Watermarker watermarker = new Watermarker(@"C:\Documents\test.pdf", loadOptions))
{
    // ...
}
See Also