Save document to the same file or stream

Following code shows usage of Save() method.

AdvancedUsage.SavingDocuments.SaveDocumentToTheSameFileOrStream

// Specify an absolute or relative path to your document. Ex: @"C:\Docs\test.doc"
File.Copy("test-in.doc", "test-out.doc");
using (Watermarker watermarker = new Watermarker("test-out.doc"))
{
    // watermarking goes here
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 12));
    watermarker.Add(watermark);

    // Saves the document to the underlying source (stream or file)
    watermarker.Save();
}