Load from stream

The following example demonstrates how to create a watermarker for a document stream:

AdvancedUsage.LoadingDocuments.LoadFromStream

// Specify an absolute or relative path to your document. Ex: @"C:\Docs\document.docx"
using (Stream document = File.OpenRead("document.docx"))
using (Watermarker watermarker = new Watermarker(document))
{
    // use watermarker methods to manage watermarks
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 12));
    watermarker.Add(watermark);
    watermarker.Save("document.docx");
}