WatermarkerSave Method (Stream, SaveOptions) |
Saves the document to the specified stream using save options.
Namespace: GroupDocs.WatermarkAssembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntaxpublic void Save(
Stream document,
SaveOptions options
)
Public Sub Save (
document As Stream,
options As SaveOptions
)
public:
void Save(
Stream^ document,
SaveOptions^ options
)
member Save :
document : Stream *
options : SaveOptions -> unit
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
Examples
Add watermark and save the document to the memory stream with default
SaveOptions.
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