using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Permissions;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace PDFSettings
{
    public class WaterMarkTempleteList:List<WaterMarkTemplete>
    {

    }

    public class WaterMarkTemplete:EventArgs
    {
        /// <summary>
        /// 模板名称
        /// </summary>
        public string templeteName = "Watermark";

        /// <summary>
        /// 水印类型
        /// </summary>
        public ComPDFKit.PDFWatermark.C_Watermark_Type type = ComPDFKit.PDFWatermark.C_Watermark_Type.WATERMARK_TYPE_TEXT;

        /// <summary>
        /// 字体名字
        /// </summary>
        public string fontName = "Helvetica";

        /// <summary>
        /// 字体大小
        /// </summary>
        public float fontSize = 48;

        /// <summary>
        /// 页码范围
        /// </summary>
        public string pageRange;

        /// <summary>
        /// 水平位置
        /// </summary>
        public ComPDFKit.PDFWatermark.C_Watermark_Horizalign horizalign = ComPDFKit.PDFWatermark.C_Watermark_Horizalign.WATERMARK_HORIZALIGN_CENTER;

        /// <summary>
        /// 水平偏移量
        /// </summary>
        public float horizOffset = 0 ;

        public string previeImagePath = "";

        /// <summary>
        /// 图片数据缓存路径
        /// </summary>
        public string imagepath = "";

        /// <summary>
        /// 图片宽
        /// </summary>
        public int imageWidth;

        /// <summary>
        /// 图片高
        /// </summary>
        public int imageHeight;

        /// <summary>
        /// 透明度 0-255
        /// </summary>
        public byte opacity =230;

        /// <summary>
        /// 旋转角度
        /// </summary>
        public float rotation = 0;

        /// <summary>
        /// 图片缩放比例
        /// </summary>
        public float scale = 1;

        /// <summary>
        /// 水印内容
        /// </summary>
        public string text="Watermark";

        /// <summary>
        /// 本文颜色
        /// </summary>
        public byte[] textcolor  = new byte[] {255,0,0};

        /// <summary>
        /// 垂直位置    
        /// </summary>
        public ComPDFKit.PDFWatermark.C_Watermark_Vertalign vertalign = ComPDFKit.PDFWatermark.C_Watermark_Vertalign.WATERMARK_VERTALIGN_CENTER;

        /// <summary>
        /// 垂直偏移量
        /// </summary>
        public float vertOffset = 0;

        /// <summary>
        /// 是否平铺
        /// </summary>
        public bool isFullScreen = false;

        /// <summary>
        /// 水平间距
        /// </summary>
        public float horizontalSpacing = (float)(10*Helpers.Dpi/25.4);
                /// <summary>
        /// 垂直间距
        /// </summary>
        public float verticalSpacing =(float)(20 *Helpers.Dpi / 25.4);

        /// <summary>
        /// 水印是否在前
        /// </summary>
        public bool isfront =true;

        /// <summary>
        /// 页面选择的范围 ALL ODD EVEN 1-5(传入用户输入的字符串)
        /// </summary>
        public string pageangeMode = "ALL";
    }
}
