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....png" Watermarker watermarker = new...new Watermarker ( "image.png" ); // Initialize the font to be...