Watermarker Constructor (Stream, LoadOptions) |
Initializes a new instance of the
Watermarker class with the specified stream
and load options.
Namespace: GroupDocs.WatermarkAssembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntaxpublic Watermarker(
Stream document,
LoadOptions options
)
Public Sub New (
document As Stream,
options As LoadOptions
)
public:
Watermarker(
Stream^ document,
LoadOptions^ options
)
new :
document : Stream *
options : LoadOptions -> Watermarker
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
Remarks
Examples
Load encrypted PDF document using password
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