Save document to the specified stream

Following code shows usage of Save(Stream) method.

AdvancedUsage.SavingDocuments.SaveDocumentToTheSpecifiedStream

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

    // Saves the document to the specified stream
    watermarker.Save(stream);
}