Browse Source

[批量] - 内置预设文件更换

liujiajie 1 year ago
parent
commit
b9a825f3af

+ 2 - 2
PDF Office/PDF Master/Class/PDFTools/AddHeaderFooter/VC/KMBatchOperateAddHeaderFooterViewController.swift

@@ -299,7 +299,7 @@ class KMBatchOperateAddHeaderFooterViewController: KMBatchOperateBaseViewControl
 //            }
 //        }
 //        wc.beginSheetModal(for: NSApp.keyWindow!, completionHandler: nil)
-        let filePath: String = Bundle.main.path(forResource: "PDF Reader Pro User Guide", ofType: "pdf") ?? ""
+        let filePath: String = Bundle.main.path(forResource: "Quick Start Guide", ofType: "pdf") ?? ""
         var cdocument = self.pdfView?.document
         if isBatchOperation {
             cdocument = CPDFDocument(url: URL(fileURLWithPath: filePath))
@@ -513,7 +513,7 @@ class KMBatchOperateAddHeaderFooterViewController: KMBatchOperateBaseViewControl
 //        }
 //        wc?.beginSheetModalForWindow(NSApp.keyWindow, completionHandler: nil)
         
-        var filePath: String = Bundle.main.path(forResource: "PDF Reader Pro User Guide", ofType: "pdf") ?? ""
+        var filePath: String = Bundle.main.path(forResource: "Quick Start Guide", ofType: "pdf") ?? ""
         if self.pdfView?.document.documentURL.path.count ?? 0 > 0 {
             filePath = self.pdfView?.document.documentURL.path ?? ""
         }

+ 3 - 3
PDF Office/PDF Master/Class/PDFTools/Watermark/Controller/KMBatchOperateAddWatermarkViewController.swift

@@ -331,7 +331,7 @@ class KMBatchOperateAddWatermarkViewController: KMBatchOperateBaseViewController
     }
     
     @IBAction func buttonClicked_addtemplate(_ sender: NSButton) {
-        let filePath: String = Bundle.main.path(forResource: "PDF Reader Pro User Guide", ofType: "pdf") ?? ""
+        let filePath: String = Bundle.main.path(forResource: "Quick Start Guide", ofType: "pdf") ?? ""
         var cdocument = self.pdfView?.document
         if isBatchOperation {
             cdocument = CPDFDocument(url: URL(fileURLWithPath: filePath))
@@ -653,7 +653,7 @@ extension KMBatchOperateAddWatermarkViewController {
         }
     }
     func editBackground(_ background: KMBackgroundModel) {
-        var filePath: String = Bundle.main.path(forResource: "PDF Reader Pro User Guide", ofType: "pdf") ?? ""
+        var filePath: String = Bundle.main.path(forResource: "Quick Start Guide", ofType: "pdf") ?? ""
         if self.pdfView?.document.documentURL.path.count ?? 0 > 0 {
             filePath = self.pdfView?.document.documentURL.path ?? ""
         }
@@ -702,7 +702,7 @@ extension KMBatchOperateAddWatermarkViewController {
     
     func editWatermark(_ waterMark: KMWatermarkModel) {
         if !isBackground {
-            var filePath: String = Bundle.main.path(forResource: "PDF Reader Pro User Guide", ofType: "pdf") ?? ""
+            var filePath: String = Bundle.main.path(forResource: "Quick Start Guide", ofType: "pdf") ?? ""
             if self.pdfView?.document.documentURL.path.count ?? 0 > 0 {
                 filePath = self.pdfView?.document.documentURL.path ?? ""
             }