Adding multi line watermark

Contents
[ ]

Implementation

Please refer to the following code chunk to add multi-line watermark in existing PDF.


// Instantiate a stamp object
Stamp logoStamp = new Stamp();

// Instantiate an object of FormattedText class
FormattedText formatText = new FormattedText("Hello World!",
System.Drawing.Color.FromArgb(180, 0, 0), FontStyle.TimesItalic, EncodingType.Winansi, false, 50);

// Add another line for Stamp
formatText.AddNewLineText("Good Luck");
// BindLogo to PDF
logoStamp.BindLogo(formatText);