using ComPDFKit.PDFWatermark; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PDF_Master.Model.EditTools.Watermark { public class WatermarkCreateModel { } public class WatermarkInfo { /// /// 水印类型; /// public C_Watermark_Type WatermarkType = C_Watermark_Type.WATERMARK_TYPE_TEXT; /// /// 文本水印内容; /// public string Text = ""; /// /// 文本水印内容; /// public string FontName = ""; /// /// 文本水印颜色; /// public byte[] TextColor=null; /// /// 文本水印大小; /// public float TextSize = 5; /// /// 图片水印内容; /// public byte[] ImageArray = null; /// /// 图片水印路径; /// public string ImagePath = ""; /// /// 图片水印大小; /// public float ImageSize = 5; /// /// 图片水印宽度; /// public int ImageWidth = 100; /// /// 图片水印高度; /// public int ImageHeight = 100; /// /// 水印页面范围; /// public string PageRange = "0"; /// /// 水印页面范围索引; /// 0:全部页面 /// 1:奇数页 /// 2;偶数页 /// 3:自定义页 /// public int PageRangeIndex = 0; /// /// 水印垂直位置; /// public C_Watermark_Vertalign WatermarkVertalign = C_Watermark_Vertalign.WATERMARK_VERTALIGN_CENTER; /// /// 水印水平位置; /// public C_Watermark_Horizalign WatermarkHorizalign = C_Watermark_Horizalign.WATERMARK_HORIZALIGN_CENTER; /// /// 水印相对垂直距离; /// public float VertOffset = 0; /// /// 水印相对水平距离; /// public float HorizOffset = 0; /// /// 水印石否平铺; /// public bool Isfull = false; /// /// 水印平铺水平间距; /// public float HorizontalSpacing = 0; /// /// 水印平铺垂直间距; /// public float VerticalSpacing = 0; /// /// 水印旋转角度; /// public float Rotation = 0; /// /// 水印透明度; /// public byte Opacity = 100; /// /// 水印是否在页面上方; /// public bool IsFront = false; /// /// 水印是否自适应比例; /// public bool IsRelativeScale = false; } }