changes to support approval process
This commit is contained in:
parent
e9a77c98bf
commit
c5e95ca801
@ -982,10 +982,16 @@ namespace Volian.Svg.Library
|
||||
ZoomOMatic(cb, 36);
|
||||
cb.RestoreState();
|
||||
}
|
||||
private bool _AllowAllWatermarks = false;
|
||||
public bool AllowAllWatermarks
|
||||
{
|
||||
get { return _AllowAllWatermarks; }
|
||||
set { _AllowAllWatermarks = value; }
|
||||
}
|
||||
private void DrawWatermark(PdfContentByte cb)
|
||||
{
|
||||
if (Watermark.ToLower().Contains("none") || Watermark == "") return;
|
||||
if (!AllowedWatermarks.Contains(Watermark)) return;
|
||||
if (Watermark == null || Watermark.ToLower().Contains("none") || Watermark == "") return;
|
||||
if (!AllowAllWatermarks && !AllowedWatermarks.Contains(Watermark)) return;
|
||||
cb.SaveState();
|
||||
if (_WatermarkLayer != null) cb.BeginLayer(_WatermarkLayer);
|
||||
SvgWatermark myWatermark = new SvgWatermark(cb, Watermark, System.Drawing.Color.Blue, .15F);
|
||||
|
Loading…
x
Reference in New Issue
Block a user