소스 검색

【改变文件路径】改变打开文档的路径,文件-自定义打印页码,必现崩溃 -- 修复

lizhe 11 달 전
부모
커밋
17487021c8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      PDF Office/PDF Master/Class/PDFTools/Print/KMPrintWindowController.swift

+ 4 - 0
PDF Office/PDF Master/Class/PDFTools/Print/KMPrintWindowController.swift

@@ -185,6 +185,10 @@ class KMPrintWindowController: KMBaseWindowController, NetServiceBrowserDelegate
             return
         }
         
+        if inputDocument != nil {
+            guard let  pdfDocument = PDFDocument(url: inputDocument!.documentURL) else { return }
+        }
+        
         let printWindowController: KMPrintWindowController = KMPrintWindowController.init(windowNibName: "KMPrintWindowController")
 
         printWindowController.printType = printType