WatermarkCreateModel.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. using ComPDFKit.PDFWatermark;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace PDF_Master.Model.EditTools.Watermark
  8. {
  9. public class WatermarkCreateModel
  10. {
  11. }
  12. public class WatermarkInfo {
  13. /// <summary>
  14. /// 水印类型;
  15. /// </summary>
  16. public C_Watermark_Type WatermarkType = C_Watermark_Type.WATERMARK_TYPE_TEXT;
  17. /// <summary>
  18. /// 文本水印内容;
  19. /// </summary>
  20. public string Text = "";
  21. /// <summary>
  22. /// 文本水印内容;
  23. /// </summary>
  24. public string FontName = "";
  25. /// <summary>
  26. /// 文本水印颜色;
  27. /// </summary>
  28. public byte[] TextColor=null;
  29. /// <summary>
  30. /// 文本水印大小;
  31. /// </summary>
  32. public float TextSize = 5;
  33. /// <summary>
  34. /// 图片水印内容;
  35. /// </summary>
  36. public byte[] ImageArray = null;
  37. /// <summary>
  38. /// 图片水印路径;
  39. /// </summary>
  40. public string ImagePath = "";
  41. /// <summary>
  42. /// 图片水印大小;
  43. /// </summary>
  44. public float ImageSize = 5;
  45. /// <summary>
  46. /// 图片水印宽度;
  47. /// </summary>
  48. public int ImageWidth = 100;
  49. /// <summary>
  50. /// 图片水印高度;
  51. /// </summary>
  52. public int ImageHeight = 100;
  53. /// <summary>
  54. /// 水印页面范围;
  55. /// </summary>
  56. public string PageRange = "0";
  57. /// <summary>
  58. /// 水印页面范围索引;
  59. /// 0:全部页面
  60. /// 1:奇数页
  61. /// 2;偶数页
  62. /// 3:自定义页
  63. /// </summary>
  64. public int PageRangeIndex = 0;
  65. /// <summary>
  66. /// 水印垂直位置;
  67. /// </summary>
  68. public C_Watermark_Vertalign WatermarkVertalign = C_Watermark_Vertalign.WATERMARK_VERTALIGN_CENTER;
  69. /// <summary>
  70. /// 水印水平位置;
  71. /// </summary>
  72. public C_Watermark_Horizalign WatermarkHorizalign = C_Watermark_Horizalign.WATERMARK_HORIZALIGN_CENTER;
  73. /// <summary>
  74. /// 水印相对垂直距离;
  75. /// </summary>
  76. public float VertOffset = 0;
  77. /// <summary>
  78. /// 水印相对水平距离;
  79. /// </summary>
  80. public float HorizOffset = 0;
  81. /// <summary>
  82. /// 水印石否平铺;
  83. /// </summary>
  84. public bool Isfull = false;
  85. /// <summary>
  86. /// 水印平铺水平间距;
  87. /// </summary>
  88. public float HorizontalSpacing = 0;
  89. /// <summary>
  90. /// 水印平铺垂直间距;
  91. /// </summary>
  92. public float VerticalSpacing = 0;
  93. /// <summary>
  94. /// 水印旋转角度;
  95. /// </summary>
  96. public float Rotation = 0;
  97. /// <summary>
  98. /// 水印透明度;
  99. /// </summary>
  100. public byte Opacity = 100;
  101. /// <summary>
  102. /// 水印是否在页面上方;
  103. /// </summary>
  104. public bool IsFront = false;
  105. /// <summary>
  106. /// 水印是否自适应比例;
  107. /// </summary>
  108. public bool IsRelativeScale = false;
  109. }
  110. }