WatermarkerSave Method (Stream, SaveOptions)
Saves the document to the specified stream using save options.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public void Save(
	Stream document,
	SaveOptions options
)

Parameters

document
Type: System.IOStream
The stream to save the document data to.
options
Type: GroupDocs.Watermark.OptionsSaveOptions
Additional options to use when saving a document.
Remarks
Learn more about saving the documents Saving documents.
Examples
Add watermark and save the document to the memory stream with default SaveOptions.
C#
using (Watermarker watermarker = new Watermarker("input.pdf"))
{
    TextWatermark watermark = new TextWatermark("top secret", new Font("Arial", 36));
    watermarker.Add(watermark);
    using (MemoryStream stream = new MemoryStream())
    {
        watermarker.Save(stream, new SaveOptions());
        // ...
    }
}
See Also