Load from local disk

The following example demonstrates how to create a watermarker for a local file system document:

AdvancedUsage.LoadingDocuments.LoadFromLocalDisk

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