KMBatchHeader.swift 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. case Json
  26. }
  27. @objc enum KMConvertType: Int {
  28. case Word = 0
  29. case Excel
  30. case PPT
  31. case RTF
  32. case CSV
  33. case HTML
  34. case Text
  35. case JPEG
  36. case JPG
  37. case PNG
  38. case GIF
  39. case TIFF
  40. case TGA
  41. case BMP
  42. case JP2
  43. case Json
  44. case AdvancedWord
  45. }
  46. @objc enum KMCompareWithToolType: Int {
  47. case Convert = 0
  48. case OCR
  49. case PageEdit
  50. case PDFEdit
  51. case FromSign
  52. case EditPDF
  53. case Sign
  54. }
  55. @objc enum KMBatchOperationType: Int {
  56. case NotDetermined = 0
  57. case CreatePDF
  58. case Convert
  59. case Merge
  60. case Compress
  61. case OCR
  62. case AddPassword
  63. case RemovePassword
  64. case AddWatermark
  65. case RemoveWatermark
  66. case AddBackground
  67. case RemoveBackground
  68. case AddHeaderFooter
  69. case RemoveHeaderFooter
  70. case AddBates
  71. case RemoveBates
  72. }
  73. @objc enum KMBatchOperateStatus: Int {
  74. case Waiting = 0
  75. case processing
  76. case Success
  77. case Failed
  78. }
  79. @objc enum KMBatchOperatePageChoice: Int {
  80. case All = 0
  81. case Odd
  82. case Even
  83. case Input
  84. }
  85. @objc enum KMBatchOperateFileType: Int {
  86. case Unknow = 0
  87. case Image
  88. case PDF
  89. }
  90. @objc enum KMWatermarkOperateType: Int {
  91. case Edit = 0
  92. case Delete
  93. }
  94. @objc enum KMBackgroundOperateType: Int {
  95. case Edit = 0
  96. case Delete
  97. }
  98. @objc enum KMBatchOperateInterfaceStatus: Int {
  99. case PrepareProcess = 0
  100. case Processing
  101. }
  102. //@objc enum KMBackgroundType: Int {
  103. // case Color = 0
  104. // case File
  105. //}
  106. @objc enum KMBatchHeaderFooterType: Int {
  107. case HeaderFooter = 0
  108. case Bates
  109. }
  110. @objc enum KMBatchModifyTemplateType: Int {
  111. case Add = 0
  112. case Edit
  113. case Delete
  114. case Use
  115. }
  116. let kNeedChangePageRangeNotification = "kNeedChangePageRangeNotification"