Following code snippet shows how to add text watermark to a document. If the document consists of multiple parts (pages, worksheets, slides, frames etc), the watermark will be added to all of them.
advanced_usage.adding_text_watermarks.AddTextWatermark
// Specify an absolute or relative path to your image. Ex: "C:\\Docs\\image.png" Watermarker watermarker = New Watermarker("image.png"); // Initialize the font to be used for watermark Font font = New Font("Arial", 19, FontStyle.Bold | FontStyle.Italic); // Create the watermark object TextWatermark watermark = New TextWatermark("Test watermark", font); // Set watermark properties watermark....Consulting Blog Knowledge Base New Releases Status Websites aspose...png" Watermarker watermarker = new Watermarker ( "image.png" );...