WatermarkerSave Method (String, SaveOptions) |
Saves the document to the specified file location using save options.
Namespace: GroupDocs.WatermarkAssembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntaxpublic void Save(
string filePath,
SaveOptions options
)
Public Sub Save (
filePath As String,
options As SaveOptions
)
public:
void Save(
String^ filePath,
SaveOptions^ options
)
member Save :
filePath : string *
options : SaveOptions -> unit
Parameters
- filePath
- Type: SystemString
The file path to save the document data to. - options
- Type: GroupDocs.Watermark.OptionsSaveOptions
Additional options to use when saving a document.
Remarks
Examples
Add the watermark and save the document to another file with default
SaveOptions.
using (Watermarker watermarker = new Watermarker("input.pdf"))
{
TextWatermark watermark = new TextWatermark("top secret", new Font("Arial", 36));
watermarker.Add(watermark);
watermarker.Save("ouput.pdf", new SaveOptions());
}
See Also