HeaderFooterCreateModel.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using System;
  2. using System.Collections.Generic;
  3. using PDFSettings;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace PDF_Master.Model.EditTools.HeaderFooter
  8. {
  9. public class HeaderFooterCreateModel
  10. {
  11. }
  12. public class HeaderFooterInfo {
  13. /// <summary>
  14. /// 模板名称
  15. /// </summary>
  16. public string ItemName = "";
  17. /// <summary>
  18. /// 内容
  19. /// </summary>
  20. public contentItem[] TextData = new contentItem[6];
  21. /// <summary>
  22. /// 间距
  23. /// </summary>
  24. ///
  25. public float[] margin = new float[4];
  26. /// <summary>
  27. /// 起始页
  28. /// </summary>
  29. public int StarPagetNumber = 1;
  30. /// <summary>
  31. /// 页眉页脚:页码格式
  32. /// </summary>
  33. public string PageNumberFormat = "1";
  34. /// <summary>
  35. /// 页眉页脚:日期格式
  36. /// </summary>
  37. public string DateTimeFormat = "m/d";
  38. /// <summary>
  39. /// 页面范围
  40. /// </summary>
  41. public string PageRange = "0";
  42. /// <summary>
  43. /// 页面范围索引;
  44. /// 0:全部页面
  45. /// 1:奇数页
  46. /// 2;偶数页
  47. /// 3:自定义页
  48. /// </summary>
  49. public int PageRangeIndex = 0;
  50. }
  51. //public struct contentItem
  52. //{
  53. // public BateHeaderFooter_ContentType textTag;
  54. // public string text;
  55. // public string fontName;
  56. // public float fontSize;
  57. // /// <summary>
  58. // /// 纯色背景颜色
  59. // /// </summary>
  60. // public byte[] Color;
  61. //}
  62. //public enum BateHeaderFooter_ContentType
  63. //{
  64. // L_Header,
  65. // C_Header,
  66. // R_Header,
  67. // L_Footer,
  68. // C_Footer,
  69. // R_Footer
  70. //}
  71. }