KMProductModel.swift 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. //
  2. // KMProductModel.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by wanjun on 2024/11/6.
  6. //
  7. import Foundation
  8. import Combine
  9. @objc enum KMCompareTableType : Int {
  10. case trial = 0 // 试用比较表
  11. case dmg_Base // DMG 基础版
  12. case dmg_MacWindows // DMG Mac&Windows双平台高级版永久
  13. case lite_Base // Lite 基础版
  14. case lite_MacWindows // Lite Mac&Windows双平台高级版永久
  15. case pro_Base // Pro 基础版
  16. case pro_Advanced // Pro Mac单平台高级版永久
  17. }
  18. @objc enum KMCompareProductType : Int {
  19. case free = 0 // 免费
  20. case freeTrial // 试用
  21. case allPlatformStandard // 全平台标准版年订阅
  22. case dualPlatformAdvanced // Mac&Windows双平台高级版永久
  23. case allPlatformAdvanced_6 // 全平台高级版6个月订阅
  24. case allPlatformAdvanced_12 // 全平台高级版12个月订阅
  25. case macPlatformAdvanced // MAC单平台高级版永久
  26. }
  27. @objc enum KMPurchasedProductType : Int {
  28. case fourDevicesAllAccessPackNew6months_lite = 0 // 4_devices_all_access_pack_new_6months(订阅)
  29. case fourDevicesAllAccessPackNew12months_lite // 4_devices_all_access_pack_12months(订阅)
  30. // case allAccessPackNew6months_lite // all_access_pack_new_6months(订阅)
  31. // case allAccessPack12months_lite // all_access_pack_12months(订阅)
  32. // case allAccessPack6months_lite // all_access_pack_6months(订阅)
  33. case aiAllAccessPack1month_lite // ai_all_access_pack_1month(订阅)
  34. case aiAllAccessPack12month_lite // ai_all_access_pack_12month(订阅)
  35. case allAccessPackPermanent_lite // all_access_pack_permanent(永久)
  36. case advancedAddDevicesAllAccessPack12months_lite // advanced_add_devices_all_access_pack_12months(订阅)
  37. case advancedAdd2DevicesAllAccessPack12months_lite // advanced_add_2_devices_all_access_pack_12months(订阅)
  38. case aiAllAccessPack1month_pro // ai_all_access_pack_1month(订阅)
  39. case aiAllAccessPack12month_pro // ai_all_access_pack_1month(订阅)
  40. case pdfToOfficePackPermanent_pro // pdf_to_office_pack_permanent(永久)
  41. case fourDevicesAllAccessPack12months_pro // 4_devices_all_access_pack_12months(全平台高级年订阅)
  42. case standardAddDevicesAllAccessPack12months_pro // standard_add_devices_all_access_pack_12months(订阅)
  43. case advancedAddDevicesAllAccessPack12months_pro // advanced_add_devices_all_access_pack_12months(订阅)
  44. case advancedAdd2DevicesAllAccessPack12months_pro // advanced_add_2_devices_all_access_pack_12months(订阅)
  45. }
  46. typealias AppstorePurchaseComplete = (_ success: Bool,_ msg: String) -> Void
  47. @objcMembers
  48. class KMProductModel: ObservableObject {
  49. /**
  50. 比较表类型
  51. */
  52. @Published var state: KMCompareTableType = .trial
  53. /**
  54. 高级版半年 或 年订阅,true为年订阅,false为半年订阅,默认true为年订阅
  55. */
  56. @Published var isPurchaseSwitch: Bool = true
  57. // MARK: DMG Public Property
  58. /**
  59. DMG 版本所有已经上架产品记录(暂时无教育优惠)
  60. */
  61. var dmgProductDatas: KMMemberProductResult?
  62. /**
  63. DMG 版本 已经登录用户 最后一次价格价格获取
  64. */
  65. var dmgLastGetProductPriceInfos: KMMemberProductResult?
  66. /**
  67. DMG 版本 已经登录用户 最后一次价格价格获取
  68. */
  69. var dmgLastGetBatchProductPriceInfos: KMMemberProductResult?
  70. // MARK: DMG Public Method
  71. func checkConnectionAvailable() -> Void {
  72. if KMMemberCenterManager.manager.isConnectionAvailable() == false {
  73. let alert = NSAlert()
  74. alert.alertStyle = .critical
  75. alert.messageText = NSLocalizedString("Error Information", comment: "")
  76. alert.informativeText = NSLocalizedString("Please make sure your internet connection is available.", comment: "")
  77. alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
  78. alert.runModal()
  79. return
  80. }
  81. }
  82. /**
  83. @abstract 获取服务器架上所有商品 (得到的价格是原始价格)
  84. @param
  85. */
  86. func getDMGProductDatas() -> Void {
  87. checkConnectionAvailable()
  88. KMMemberCenterManager.manager.getListingProducts(isEducation: 0) { [weak self] success, result in
  89. guard let productsArrays : KMMemberProductResult = result else { return }
  90. self?.dmgProductDatas = productsArrays
  91. }
  92. if KMMemberInfo.shared.isLogin {
  93. getDMGProductPriceInfosForMember(productId: "SP2024102100002", isEducation: 0) { [weak self] success, result in
  94. }
  95. }
  96. }
  97. /**
  98. @abstract 获取登录用户价格(建立订单时需要用到)
  99. @param
  100. */
  101. func getDMGProductPriceInfosForMember(productId: String, isEducation: Int, _ complete: @escaping KMMemberProductComplete) {
  102. checkConnectionAvailable()
  103. //暂时无教育优惠,先固定传 0
  104. KMMemberCenterManager.manager.getProductPriceForBuy(productId: productId, isEducation: 0, userId:KMMemberInfo.shared.userID) { [weak self] success, result in
  105. if success {
  106. guard let productsArrays : KMMemberProductResult = result else {
  107. complete(false, result)
  108. return
  109. }
  110. self?.dmgLastGetProductPriceInfos = productsArrays
  111. complete(true, productsArrays)
  112. } else {
  113. complete(false, result)
  114. }
  115. }
  116. }
  117. /**
  118. @abstract 获取批量阶段购买价格(建立订单时需要用到)
  119. @param
  120. */
  121. func getDMGBatchProductPriceInfosForMember(productId: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
  122. checkConnectionAvailable()
  123. KMMemberCenterManager.manager.getBatchProductPrice(productId: productId, num: num) { [weak self] success, result in
  124. if success {
  125. guard let productsArrays : KMMemberProductResult = result else {
  126. complete(false, result)
  127. return
  128. }
  129. self?.dmgLastGetBatchProductPriceInfos = productsArrays
  130. complete(true, productsArrays)
  131. } else {
  132. complete(false, result)
  133. }
  134. }
  135. }
  136. // MARK: Public Method
  137. /**
  138. @abstract 根据当前权益获取比较表类型
  139. @param
  140. */
  141. func getCurrentComparisonTableType() -> Void {
  142. if KMMemberInfo.shared.canTrail {
  143. state = .trial
  144. } else {
  145. #if VERSION_FREE
  146. #if VERSION_DMG
  147. // DMG
  148. if KMMemberInfo.shared.vip_levels == "1" {
  149. state = .dmg_Base
  150. } else if KMMemberInfo.shared.vip_levels == "2" {
  151. state = .dmg_MacWindows
  152. }
  153. #else
  154. // AppStore 免费版本
  155. if KMMemberInfo.shared.vip_levels == "1" {
  156. state = .lite_Base
  157. } else if KMMemberInfo.shared.vip_levels == "2" {
  158. state = .lite_MacWindows
  159. }
  160. #endif
  161. #else
  162. // AppStore 付费版
  163. if KMMemberInfo.shared.vip_levels == "1" {
  164. state = .pro_Base
  165. } else if KMMemberInfo.shared.vip_levels == "2" {
  166. state = .pro_Advanced
  167. }
  168. #endif
  169. }
  170. }
  171. /**
  172. 对应商品价格
  173. */
  174. func getProductPrice(_ type: KMPurchasedProductType) -> String {
  175. if type == .fourDevicesAllAccessPackNew6months_lite {
  176. if let product = IAPProductsManager.default().fourDevicesAllAccessPackNew6Months_lite, product.isOffers {
  177. return product.offersPrice()
  178. } else {
  179. return IAPProductsManager.default().fourDevicesAllAccessPackNew6Months_lite.price()
  180. }
  181. } else if type == .fourDevicesAllAccessPackNew12months_lite {
  182. if let product = IAPProductsManager.default().fourDevicesAllAccessPackNew12months_lite, product.isOffers {
  183. return product.offersPrice()
  184. } else {
  185. return IAPProductsManager.default().fourDevicesAllAccessPackNew12months_lite.price()
  186. }
  187. } else if type == .aiAllAccessPack1month_lite {
  188. if let product = IAPProductsManager.default().aiAllAccessPack1month_lite, product.isOffers {
  189. return product.offersPrice()
  190. } else {
  191. return IAPProductsManager.default().aiAllAccessPack1month_lite.price()
  192. }
  193. } else if type == .aiAllAccessPack12month_lite {
  194. if let product = IAPProductsManager.default().aiAllAccessPack12month_lite, product.isOffers {
  195. return product.offersPrice()
  196. } else {
  197. return IAPProductsManager.default().aiAllAccessPack12month_lite.price()
  198. }
  199. } else if type == .allAccessPackPermanent_lite {
  200. if let product = IAPProductsManager.default().allAccessPackPermanent_lite, product.isOffers {
  201. return product.offersPrice()
  202. } else {
  203. return IAPProductsManager.default().allAccessPackPermanent_lite.price()
  204. }
  205. } else if type == .advancedAddDevicesAllAccessPack12months_lite {
  206. if let product = IAPProductsManager.default().advancedAddDevicesAllAccessPack12months_lite, product.isOffers {
  207. return product.offersPrice()
  208. } else {
  209. return IAPProductsManager.default().advancedAddDevicesAllAccessPack12months_lite.price()
  210. }
  211. } else if type == .advancedAdd2DevicesAllAccessPack12months_lite {
  212. if let product = IAPProductsManager.default().advancedAdd2DevicesAllAccessPack12months_lite, product.isOffers {
  213. return product.offersPrice()
  214. } else {
  215. return IAPProductsManager.default().advancedAdd2DevicesAllAccessPack12months_lite.price()
  216. }
  217. } else if type == .aiAllAccessPack1month_pro {
  218. if let product = IAPProductsManager.default().aiAllAccessPack1month_pro, product.isOffers {
  219. return product.offersPrice()
  220. } else {
  221. return IAPProductsManager.default().aiAllAccessPack1month_pro.price()
  222. }
  223. } else if type == .aiAllAccessPack12month_pro {
  224. if let product = IAPProductsManager.default().aiAllAccessPack12month_pro, product.isOffers {
  225. return product.offersPrice()
  226. } else {
  227. return IAPProductsManager.default().aiAllAccessPack12month_pro.price()
  228. }
  229. } else if type == .pdfToOfficePackPermanent_pro {
  230. if let product = IAPProductsManager.default().pdfToOfficePackPermanent_pro, product.isOffers {
  231. return product.offersPrice()
  232. } else {
  233. return IAPProductsManager.default().pdfToOfficePackPermanent_pro.price()
  234. }
  235. } else if type == .fourDevicesAllAccessPack12months_pro {
  236. if let product = IAPProductsManager.default().fourDevicesAllAccessPack12months_pro, product.isOffers {
  237. return product.offersPrice()
  238. } else {
  239. return IAPProductsManager.default().fourDevicesAllAccessPack12months_pro.price()
  240. }
  241. } else if type == .standardAddDevicesAllAccessPack12months_pro {
  242. if let product = IAPProductsManager.default().standardAddDevicesAllAccessPack12months_pro, product.isOffers {
  243. return product.offersPrice()
  244. } else {
  245. return IAPProductsManager.default().standardAddDevicesAllAccessPack12months_pro.price()
  246. }
  247. } else if type == .advancedAddDevicesAllAccessPack12months_pro {
  248. if let product = IAPProductsManager.default().advancedAddDevicesAllAccessPack12months_pro, product.isOffers {
  249. return product.offersPrice()
  250. } else {
  251. return IAPProductsManager.default().advancedAddDevicesAllAccessPack12months_pro.price()
  252. }
  253. } else if type == .advancedAdd2DevicesAllAccessPack12months_pro {
  254. if let product = IAPProductsManager.default().advancedAdd2DevicesAllAccessPack12months_pro, product.isOffers {
  255. return product.offersPrice()
  256. } else {
  257. return IAPProductsManager.default().advancedAdd2DevicesAllAccessPack12months_pro.price()
  258. }
  259. }
  260. return ""
  261. }
  262. func appstorePurchaseAction(_ tag: Int, _ complete: @escaping AppstorePurchaseComplete) -> Void {
  263. if state == .dmg_Base {
  264. } else if state == .dmg_MacWindows {
  265. } else if state == .lite_Base {
  266. if tag == 0 {
  267. if isPurchaseSwitch { membershipPurchase(.fourDevicesAllAccessPackNew12months_lite) }
  268. else { membershipPurchase(.fourDevicesAllAccessPackNew6months_lite) }
  269. } else if tag == 3 {
  270. membershipPurchase(.allAccessPackPermanent_lite)
  271. } else {
  272. membershipPurchase(.fourDevicesAllAccessPackNew12months_lite)
  273. }
  274. } else if state == .lite_MacWindows {
  275. if tag == 2 {
  276. let platforms = KMMemberInfo.shared.vip_platforms
  277. let platformsArray = platforms
  278. .components(separatedBy: ",")
  279. .map { $0.trimmingCharacters(in: .whitespaces) }
  280. if platformsArray.count == 1 {
  281. membershipPurchase(.advancedAddDevicesAllAccessPack12months_lite)
  282. } else if platformsArray.count == 2 {
  283. membershipPurchase(.advancedAdd2DevicesAllAccessPack12months_lite)
  284. } else {
  285. membershipPurchase(.advancedAdd2DevicesAllAccessPack12months_lite)
  286. }
  287. }
  288. } else if state == .pro_Base {
  289. if KMMemberInfo.shared.userScenarioType == .pro_type3 {
  290. if tag == 2 {
  291. membershipPurchase(.standardAddDevicesAllAccessPack12months_pro)
  292. } else if tag == 3 {
  293. membershipPurchase(.pdfToOfficePackPermanent_pro)
  294. }
  295. }
  296. } else if state == .pro_Advanced {
  297. if KMMemberInfo.shared.userScenarioType == .pro_type1 {
  298. membershipPurchase(.advancedAddDevicesAllAccessPack12months_pro)
  299. } else if KMMemberInfo.shared.userScenarioType == .pro_type4 {
  300. membershipPurchase(.advancedAddDevicesAllAccessPack12months_pro)
  301. }
  302. } else {
  303. if tag == 2 {
  304. membershipPurchase(.fourDevicesAllAccessPackNew12months_lite)
  305. }
  306. }
  307. }
  308. var isCancelAutoRenew: Bool {
  309. return IAPProductsManager.default().isCancelAutoRenew()
  310. }
  311. var isShowSale: Bool {
  312. if #available(macOS 10.14.4, *), isCancelAutoRenew {
  313. let manager = IAPProductsManager.default()
  314. let isSubscribed_newlyMonth = manager?.allAccessPackNew6months_lite.isSubscribed ?? false
  315. let isSubscribed_year = manager?.allAccessPack12months_lite.isSubscribed ?? false
  316. if isSubscribed_newlyMonth || isSubscribed_year {
  317. return false
  318. }
  319. if let info = KMAdvertisementManager.manager.info.StoreUserRecovery?.content?.first, !(info.show! as NSString).boolValue {
  320. return false
  321. }
  322. return true
  323. }
  324. return false
  325. }
  326. // MARK: Private Method
  327. /**
  328. 会员购买
  329. */
  330. private func membershipPurchase(_ type: KMPurchasedProductType) -> Void {
  331. if type == .fourDevicesAllAccessPackNew6months_lite || type == .fourDevicesAllAccessPackNew12months_lite {
  332. if isPurchaseSwitch {
  333. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().fourDevicesAllAccessPackNew12months_lite, discount: isCancelAutoRenew)
  334. } else {
  335. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().fourDevicesAllAccessPackNew6Months_lite, discount: isCancelAutoRenew)
  336. }
  337. } else if type == .aiAllAccessPack1month_lite {
  338. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().aiAllAccessPack1month_lite, discount: isCancelAutoRenew)
  339. } else if type == .aiAllAccessPack12month_lite {
  340. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().aiAllAccessPack12month_lite, discount: isCancelAutoRenew)
  341. } else if type == .allAccessPackPermanent_lite {
  342. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().allAccessPackPermanent_lite, discount: isCancelAutoRenew)
  343. } else if type == .advancedAddDevicesAllAccessPack12months_lite {
  344. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().advancedAddDevicesAllAccessPack12months_lite, discount: isCancelAutoRenew)
  345. } else if type == .advancedAdd2DevicesAllAccessPack12months_lite {
  346. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().advancedAdd2DevicesAllAccessPack12months_lite, discount: isCancelAutoRenew)
  347. } else if type == .aiAllAccessPack1month_pro {
  348. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().aiAllAccessPack1month_pro, discount: isCancelAutoRenew)
  349. } else if type == .aiAllAccessPack12month_pro {
  350. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().aiAllAccessPack12month_pro, discount: isCancelAutoRenew)
  351. } else if type == .pdfToOfficePackPermanent_pro {
  352. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().pdfToOfficePackPermanent_pro, discount: isCancelAutoRenew)
  353. } else if type == .fourDevicesAllAccessPack12months_pro {
  354. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().fourDevicesAllAccessPack12months_pro, discount: isCancelAutoRenew)
  355. } else if type == .standardAddDevicesAllAccessPack12months_pro {
  356. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().standardAddDevicesAllAccessPack12months_pro, discount: isCancelAutoRenew)
  357. } else if type == .advancedAddDevicesAllAccessPack12months_pro {
  358. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().advancedAddDevicesAllAccessPack12months_pro, discount: isCancelAutoRenew)
  359. } else if type == .advancedAdd2DevicesAllAccessPack12months_pro {
  360. IAPProductsManager.default().makeSubProduct(IAPProductsManager.default().advancedAdd2DevicesAllAccessPack12months_pro, discount: isCancelAutoRenew)
  361. }
  362. }
  363. // MARK: Action Method
  364. /**
  365. 恢复购买
  366. */
  367. func productRestore() -> Void {
  368. IAPProductsManager.default().restoreSubscriptions()
  369. }
  370. func privacyPolicyAction() -> Void {
  371. NSWorkspace.shared.open(URL(string: "https://www.pdfreaderpro.com/privacy-policy")!)
  372. }
  373. func termOfSerAction() -> Void {
  374. NSWorkspace.shared.open(URL(string: "https://www.pdfreaderpro.com/terms_of_service")!)
  375. }
  376. // MARK: Get & Set
  377. /**
  378. 当前比较表产品列表内容
  379. */
  380. var products: [KMCompareProductType] {
  381. if state == .trial {
  382. return [.free, .freeTrial]
  383. } else if state == .dmg_Base {
  384. return [.free, .allPlatformStandard, .allPlatformAdvanced_12, .dualPlatformAdvanced]
  385. } else if state == .dmg_MacWindows {
  386. return [.allPlatformAdvanced_12]
  387. } else if state == .lite_Base {
  388. return [.free, .allPlatformAdvanced_6, .allPlatformAdvanced_12, .dualPlatformAdvanced]
  389. } else if state == .lite_MacWindows {
  390. return [.allPlatformAdvanced_12]
  391. } else if state == .pro_Base {
  392. return [.allPlatformAdvanced_12, .macPlatformAdvanced]
  393. } else if state == .pro_Advanced {
  394. return [.allPlatformAdvanced_12]
  395. }
  396. return []
  397. }
  398. /**
  399. 比较表数据源
  400. */
  401. var dataSource: [Any] {
  402. if isPurchaseSwitch {
  403. // 试用 全平台标准版年订阅 全平台高级版6/12个月订阅 Mac&Windows双平台高级版永久 MAC单平台高级版永久
  404. //MAC单平台标准版永久
  405. return [
  406. "Benefit",
  407. ["Supported platforms", "mac, windows, ios, android", "mac, windows, ios, android", "mac, windows, ios, android", "mac, windows", "mac"],
  408. ["Maximum number of accessible devices", "2 devices", "4 devices", "4 devices", "2 devices", "1 devices"],
  409. "PDF to Office",
  410. ["Convert PDFs to Word, HTML, TXT, JPEG or PNG files", "Only first 10 pages", "Standard", "Advanced", "Advanced", "Advanced"],
  411. ["Turn PDF to PPT, Excel, RTF, CSV, and more", "Only first 10 pages", "Only first 10 pages", "✓", "✓", "✓"],
  412. ["Convert PDF to TIFF, BMP, GIF or TGA files", "Only first 10 pages", "Only first 10 pages", "✓", "✓", "✓"],
  413. "Edit PDF",
  414. ["Add and edit text in PDF", "X", "✓", "✓", "✓", "✓"],
  415. ["Edit, crop, replace image in PDF", "X", "✓", "✓", "✓", "✓"],
  416. "OCR",
  417. ["Extract texts from image-based or scanned PDF", "X", "✓", "✓", "✓", "✓"],
  418. "Organize Pages",
  419. ["Extract, rotate, rearrange, replace, add, delete pages", "X", "✓", "✓", "✓", "✓"],
  420. ["Split PDFs into multiple files", "X", "✓", "✓", "✓", "✓"],
  421. "Advanced Editing Tools",
  422. ["Merge multiple documents into a new PDF", "Up to 2 files or 20 MB", "✓", "✓", "✓", "∞", "∞"],
  423. ["Add & edit watermark", "X", "✓", "✓", "✓", "✓"],
  424. ["Add header, footer, page numbers", "X", "✓", "✓", "✓", "✓"],
  425. ["Add Bates Number", "X", "✓", "✓", "✓", "✓"],
  426. ["Insert PDF page background by color or image", "X", "✓", "✓", "✓", "✓"],
  427. ["Create fattened copies", "X", "✓", "✓", "✓", "✓"],
  428. ["Extract Images", "X", "✓", "✓", "✓", "✓"],
  429. ["Extract tables", "Only first 10 pages", "Only first 10 pages", "✓", "✓", "✓"],
  430. ["Measuring Tools", "X", "✓", "✓", "✓", "✓"],
  431. "Fill & Sign",
  432. ["Create digital signature", "X", "✓", "✓", "✓", "✓"],
  433. ["Create & Edit & Fill Adobe Fillable PDF Forms", "X", "✓", "✓", "✓", "✓"],
  434. "Security",
  435. ["Batch encrypting PDF documents", "X", "✓", "✓", "✓", "✓"],
  436. ["PDF Password Remover", "X", "✓", "✓", "✓", "✓"],
  437. ["Redact sensitive information", "X", "✓", "✓", "✓", "✓"],
  438. "Create PDF",
  439. ["Convert JPEG, JPG, PNG, TIFF, BMP or PSD files to PDFs", "1 file", "✓", "✓", "✓", "✓"],
  440. ["Create PDFs from a scanner and iOS devices", "X", "✓", "✓", "✓", "✓"],
  441. "Annotations",
  442. ["Customize PDF stamps", "X", "✓", "✓", "✓", "✓"],
  443. ["Hyperlink", "Page Number", "Page Number, URL, Email", "Page Number, URL, Email", "Page Number, URL, Email", "Page Number, URL, Email"],
  444. ["Signature", "Standard", "Advanced", "Advanced", "Advanced", "Advanced"],
  445. ["Table", "X", "✓", "✓", "✓", "✓"],
  446. "View PDF",
  447. ["Multi-tab viewer", "X", "✓", "✓", "✓", "✓"],
  448. ["Various printing types: poster, booklet, multi-page printing", "X", "✓", "✓", "✓", "✓"],
  449. ["Customize theme colors: Light Mode, Dark Mode, Sepia Mode and more", "X", "✓", "✓", "✓", "✓"],
  450. ["Split View to compare files", "X", "✓", "✓", "✓", "✓"],
  451. "Subscription Based Solution",
  452. ["Access all premium features in app", "X", "12 months", "12 months", "∞", "∞"],
  453. ["Priority customer support", "X", "✓", "✓", "✓", "✓"],
  454. ["Ad-free", "X", "✓", "✓", "✓", "✓"]
  455. ]
  456. } else {
  457. return [
  458. "Benefit",
  459. ["Supported platforms", "mac, windows, ios, android", "mac, windows, ios, android", "mac, windows, ios, android", "mac, windows", "mac"],
  460. ["Maximum number of accessible devices", "2 devices", "4 devices", "4 devices", "2 devices", "1 devices"],
  461. "PDF to Office",
  462. ["Convert PDFs to Word, HTML, TXT, JPEG or PNG files", "Only first 10 pages", "Standard", "Advanced", "Advanced", "Advanced"],
  463. ["Turn PDF to PPT, Excel, RTF, CSV, and more", "Only first 10 pages", "Only first 10 pages", "✓", "✓", "✓"],
  464. ["Convert PDF to TIFF, BMP, GIF or TGA files", "Only first 10 pages", "Only first 10 pages", "✓", "✓", "✓"],
  465. "Edit PDF",
  466. ["Add and edit text in PDF", "X", "✓", "✓", "✓", "✓"],
  467. ["Edit, crop, replace image in PDF", "X", "✓", "✓", "✓", "✓"],
  468. "OCR",
  469. ["Extract texts from image-based or scanned PDF", "X", "✓", "✓", "✓", "✓"],
  470. "Organize Pages",
  471. ["Extract, rotate, rearrange, replace, add, delete pages", "X", "✓", "✓", "✓", "✓"],
  472. ["Split PDFs into multiple files", "X", "✓", "✓", "✓", "✓"],
  473. "Advanced Editing Tools",
  474. ["Merge multiple documents into a new PDF", "Up to 2 files or 20 MB", "✓", "✓", "✓", "∞", "∞"],
  475. ["Add & edit watermark", "X", "✓", "✓", "✓", "✓"],
  476. ["Add header, footer, page numbers", "X", "✓", "✓", "✓", "✓"],
  477. ["Add Bates Number", "X", "✓", "✓", "✓", "✓"],
  478. ["Insert PDF page background by color or image", "X", "✓", "✓", "✓", "✓"],
  479. ["Create fattened copies", "X", "✓", "✓", "✓", "✓"],
  480. ["Extract Images", "X", "✓", "✓", "✓", "✓"],
  481. ["Extract tables", "Only first 10 pages", "Only first 10 pages", "✓", "✓", "✓"],
  482. ["Measuring Tools", "X", "✓", "✓", "✓", "✓"],
  483. "Fill & Sign",
  484. ["Create digital signature", "X", "✓", "✓", "✓", "✓"],
  485. ["Create & Edit & Fill Adobe Fillable PDF Forms", "X", "✓", "✓", "✓", "✓"],
  486. "Security",
  487. ["Batch encrypting PDF documents", "X", "✓", "✓", "✓", "✓"],
  488. ["PDF Password Remover", "X", "✓", "✓", "✓", "✓"],
  489. ["Redact sensitive information", "X", "✓", "✓", "✓", "✓"],
  490. "Create PDF",
  491. ["Convert JPEG, JPG, PNG, TIFF, BMP or PSD files to PDFs", "1 file", "✓", "✓", "✓", "✓"],
  492. ["Create PDFs from a scanner and iOS devices", "X", "✓", "✓", "✓", "✓"],
  493. "Annotations",
  494. ["Customize PDF stamps", "X", "✓", "✓", "✓", "✓"],
  495. ["Hyperlink", "Page Number", "Page Number, URL, Email", "Page Number, URL, Email", "Page Number, URL, Email", "Page Number, URL, Email"],
  496. ["Signature", "Standard", "Advanced", "Advanced", "Advanced", "Advanced"],
  497. ["Table", "X", "✓", "✓", "✓", "✓"],
  498. "View PDF",
  499. ["Multi-tab viewer", "X", "✓", "✓", "✓", "✓"],
  500. ["Various printing types: poster, booklet, multi-page printing", "X", "✓", "✓", "✓", "✓"],
  501. ["Customize theme colors: Light Mode, Dark Mode, Sepia Mode and more", "X", "✓", "✓", "✓", "✓"],
  502. ["Split View to compare files", "X", "✓", "✓", "✓", "✓"],
  503. "Subscription Based Solution",
  504. ["Access all premium features in app", "X", "6 months", "6 months", "∞", "∞"],
  505. ["Priority customer support", "X", "✓", "✓", "✓", "✓"],
  506. ["Ad-free", "X", "✓", "✓", "✓", "✓"]
  507. ]
  508. }
  509. }
  510. }