KMProductModel.swift 35 KB

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