|
@@ -756,11 +756,14 @@ class KMConvertBaseWindowController: KMBaseWindowController {
|
|
|
self.showProgressWindow()
|
|
|
self.progressController?.maxValue = Double(convert.pages.count)
|
|
|
}
|
|
|
+#if VERSION_DMG
|
|
|
if self.settingView?.ocrItemView?.checkVC?.state == .Checked {
|
|
|
let resourcePath = Bundle.main.resourcePath
|
|
|
let filePath = resourcePath?.stringByAppendingPathComponent("DocumentAI.bundle")
|
|
|
CPDFConvertKit.setOCRModelPath(filePath)
|
|
|
}
|
|
|
+#else
|
|
|
+#endif
|
|
|
DispatchQueue.global().async {
|
|
|
KMPDFConvertManager.defaultManager.convert(convert: convert, progress: { index in
|
|
|
DispatchQueue.main.async {
|