WatermarkerSave Method (Stream)
Saves the document to the specified stream.

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

Parameters

document
Type: System.IOStream
The stream to save the document data to.
Remarks
Learn more about saving the documents Saving documents.
Examples
Add watermark and save the document to the memory stream.
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);
        // ...
    }
}
See Also