dpsubi1 wrote:
I tried changing the value of the emsize, but there is no changes in font sizes.
Quote:
string watermark = WatermarkText;
const int emSize = 140;
Well, it's pretty simple. The const "emSize" is not used for watermark size, even though it was declared (presumably) for such purpose. So you have to correct the following line:
Code:
path.AddString(watermark, font.FontFamily, XFontStyle.BoldItalic, 150, new XPoint((page.Width - size.Width) / 2, (page.Height - size.Height) / 2), XStringFormat.Default);
The "150" after XFontStyle.BoldItalic is the font size, so change this to "emSize" or just put in your value.
Perhaps the samples should also be corrected to avoid confusion?