All watermarks appear gray in color, with opacity at 1. Foreground Color set to red, background black, no changes. I was able to add color in my evaluation but does not appear to work anymore. Any suggestions? This has happened on multiple word documents.
string documentWatermark = "Effective Date: " + effectiveDate.Value.ToLocalTime().ToString();
List<TextWatermark> returnValue = new List<TextWatermark>();
returnValue.Add(new TextWatermark(documentWatermark, new Font("Arial", 8));
foreach (var wm in returnValue)
{
wm.Opacity = _config.Opacity;
wm.ForegroundColor = Color.Black;
wm.Margins = new Margins(MarginType.Absolute, 0, 0, .1, .1);
wm.BackgroundColor = Color.Red;
returnValue.Add(clearmarkWM);
}
using (Watermarker watermarker = new Watermarker(fileStream))
{
foreach (var wm in returnValue)
{
watermarker.Add(wm);
}
watermarker.Save();
}
image.png (85.8 KB)