|
@@ -2827,6 +2827,11 @@ extension KMMainViewController {
|
|
|
}
|
|
|
//MARK: 转档 - OCR
|
|
|
func showOCRWindow() {
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
let com = KMOCRPDFWindowController(cpdfDocument: self.listView.document!, pwd: self.listView.document.password)
|
|
|
self.km_beginSheet(windowC: com)
|
|
|
}
|
|
@@ -2843,6 +2848,11 @@ extension KMMainViewController {
|
|
|
}
|
|
|
|
|
|
func showDigitalSignWindow(withFilePathURL fileURL: URL) {
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if hasShowDigitalSign() {
|
|
|
self.exitDigitalSign()
|
|
|
}
|
|
@@ -2887,6 +2897,11 @@ extension KMMainViewController {
|
|
|
|
|
|
//MARK: 导出图片
|
|
|
func extractImageAction(num: Int) {
|
|
|
+ if !IAPProductsManager.default().isAvailableAllFunction(){
|
|
|
+ KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if !(self.listView.document.allowsPrinting || self.listView.document.allowsCopying) {
|
|
|
let alert = NSAlert()
|
|
|
alert.alertStyle = .critical
|
|
@@ -2897,11 +2912,7 @@ extension KMMainViewController {
|
|
|
// if sender is KMToolbarItem {
|
|
|
// (sender as! KMToolbarItem).isSelected = false
|
|
|
// }
|
|
|
-
|
|
|
- // if !IAPProductsManager.defaultManager.isAvailableAllFunction {
|
|
|
- // KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
- // return
|
|
|
- // }
|
|
|
+
|
|
|
|
|
|
let document = self.listView.document
|
|
|
var fileURL = document?.documentURL
|