Watermarker Constructor (String, LoadOptions) |
Initializes a new instance of the
Watermarker class with the specified
document path and load options.
Namespace: GroupDocs.WatermarkAssembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntaxpublic Watermarker(
string filePath,
LoadOptions options
)
Public Sub New (
filePath As String,
options As LoadOptions
)
public:
Watermarker(
String^ filePath,
LoadOptions^ options
)
new :
filePath : string *
options : LoadOptions -> Watermarker
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
Remarks
Examples
Load encrypted PDF document using password.
PdfLoadOptions loadOptions = new PdfLoadOptions();
loadOptions.Password = "123";
using (Watermarker watermarker = new Watermarker(@"C:\Documents\test.pdf", loadOptions))
{
}
See Also