Watermarker Constructor (String)
Initializes a new instance of the Watermarker class with the specified document path.

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

Parameters

filePath
Type: SystemString
The file path to load the document from.
Exceptions
ExceptionCondition
UnsupportedFileTypeExceptionSupplied document type is not supported.
InvalidPasswordExceptionSupplied password is incorrect.
Remarks
Learn more about loading documents: Loading documents.
Examples
Load and save a content of any supported format.
C#
// Load a content from a file.
using (Watermarker watermarker = new Watermarker("D:\\input.pdf"))
{
    // Use methods of Watermarker class to add, search or remove watermarks.

    // Save the document.
    watermarker.Save("D:\\output.pdf");
}
See Also