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.... Ex: "C:\\Docs\\image.png" Watermarker...relative path to your image. Ex: "C:\\Docs\\image.png" Watermarker...