فهرست منبع

【编辑工具】安全,加密后文档名称要加上Set_Password,且加密后文档要默认高亮选中 -- 修复

lizhe 11 ماه پیش
والد
کامیت
c7429e659f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift

+ 1 - 1
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift

@@ -1465,7 +1465,7 @@ let LOCKED_KEY  = "locked"
                         if document != nil {
                             document!.setDocumentAttributes(attribute)
                             
-                            let path = fileURL.path.stringByAppendingPathComponent(url.lastPathComponent)
+                            let path = fileURL.path.stringByAppendingPathComponent(url.deletingPathExtension().lastPathComponent) + "_SetPassword" + "." + url.pathExtension
                             let success = document!.write(to: NSURL(fileURLWithPath: path) as URL, withOptions: options)
                             if success {
                                 self.view.window?.endSheet((self.currentWindowController.window)!)