KMBatchHeader.swift 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. //
  2. // KMBatchHeader.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by kdanmobile on 2023/10/25.
  6. //
  7. import Foundation
  8. @objc enum KMConvertWithPDFType: Int {
  9. case WordAdvance = 0
  10. case WordStandard
  11. case Excel
  12. case PowerPoint
  13. case RTF
  14. case CSV
  15. case HTML
  16. case Text
  17. case JPEG
  18. case JPG
  19. case PNG
  20. case GIF
  21. case TIFF
  22. case TGA
  23. case BMP
  24. case JPEG2000
  25. }
  26. @objc enum KMConvertType: Int {
  27. case Word = 0
  28. case Excel
  29. case PPT
  30. case RTF
  31. case CSV
  32. case HTML
  33. case Text
  34. case JPEG
  35. case JPG
  36. case PNG
  37. case GIF
  38. case TIFF
  39. case TGA
  40. case BMP
  41. case JP2
  42. case AdvancedWord
  43. }
  44. @objc enum KMCompareWithToolType: Int {
  45. case Convert = 0
  46. case OCR
  47. case PageEdit
  48. case PDFEdit
  49. case FromSign
  50. case EditPDF
  51. case Sign
  52. }
  53. @objc enum KMBatchOperationType: Int {
  54. case NotDetermined = 0
  55. case CreatePDF
  56. case Convert
  57. case Merge
  58. case Compress
  59. case OCR
  60. case AddPassword
  61. case RemovePassword
  62. case AddWatermark
  63. case RemoveWatermark
  64. case AddBackground
  65. case RemoveBackground
  66. case AddHeaderFooter
  67. case RemoveHeaderFooter
  68. case AddBates
  69. case RemoveBates
  70. }
  71. @objc enum KMBatchOperateStatus: Int {
  72. case Waiting = 0
  73. case processing
  74. case Success
  75. case Failed
  76. }
  77. @objc enum KMBatchOperatePageChoice: Int {
  78. case All = 0
  79. case Odd
  80. case Even
  81. case Input
  82. }
  83. @objc enum KMBatchOperateFileType: Int {
  84. case Unknow = 0
  85. case Image
  86. case PDF
  87. }
  88. @objc enum KMWatermarkOperateType: Int {
  89. case Edit = 0
  90. case Delete
  91. }
  92. @objc enum KMBackgroundOperateType: Int {
  93. case Edit = 0
  94. case Delete
  95. }
  96. @objc enum KMBatchOperateInterfaceStatus: Int {
  97. case PrepareProcess = 0
  98. case Processing
  99. }
  100. //@objc enum KMBackgroundType: Int {
  101. // case Color = 0
  102. // case File
  103. //}
  104. @objc enum KMBatchHeaderFooterType: Int {
  105. case HeaderFooter = 0
  106. case Bates
  107. }
  108. @objc enum KMBatchModifyTemplateType: Int {
  109. case Add = 0
  110. case Edit
  111. case Delete
  112. case Use
  113. }
  114. let kNeedChangePageRangeNotification = "kNeedChangePageRangeNotification"