|
@@ -691,18 +691,19 @@ extension KMHomeViewController {
|
|
|
}
|
|
|
|
|
|
func newFromImages() {
|
|
|
- let openPanel = NSOpenPanel()
|
|
|
- openPanel.allowedFileTypes = KMImageAccessoryController.supportedImageTypes()
|
|
|
+ fastTool_ImageToPDF()
|
|
|
+// let openPanel = NSOpenPanel()
|
|
|
+// openPanel.allowedFileTypes = KMImageAccessoryController.supportedImageTypes()
|
|
|
// if IAPProductsManager.defaultManager().isAvailableAllFunction {
|
|
|
// openPanel.allowsMultipleSelection = true
|
|
|
// } else {
|
|
|
// openPanel.allowsMultipleSelection = false
|
|
|
// }
|
|
|
- openPanel.message = NSLocalizedString("Select images to create a new document. To select multiple files press cmd ⌘ button on the keyboard and click on the target files one by one.", comment: "")
|
|
|
- openPanel.beginSheetModal(for: NSApp.mainWindow!) { result in
|
|
|
- if result == .OK {
|
|
|
- DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
|
|
|
- debugPrint("缺少图片转PDF")
|
|
|
+// openPanel.message = NSLocalizedString("Select images to create a new document. To select multiple files press cmd ⌘ button on the keyboard and click on the target files one by one.", comment: "")
|
|
|
+// openPanel.beginSheetModal(for: NSApp.mainWindow!) { result in
|
|
|
+// if result == .OK {
|
|
|
+// DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
|
|
|
+// debugPrint("缺少图片转PDF")
|
|
|
// let baseWindowController = KMBatchOperateBaseWindowController(windowNibName: "KMBatchOperateBaseWindowController")
|
|
|
// var arr: [KMBatchOperateFile] = []
|
|
|
// for url in openPanel.urls {
|
|
@@ -719,8 +720,8 @@ extension KMHomeViewController {
|
|
|
// if #available(macOS 10.13, *) {
|
|
|
// baseWindowController.release()
|
|
|
// }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
}
|
|
|
}
|