Bläddra i källkod

Merge branch 'develop' of git.kdan.cc:Mac_PDF/PDF_Office into develop

tangchao 2 år sedan
förälder
incheckning
64df3e7bf4
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      PDF Office/PDF Office/Class/Document/KMMainDocument.swift

+ 1 - 2
PDF Office/PDF Office/Class/Document/KMMainDocument.swift

@@ -140,8 +140,7 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
         if !self.isHome {
             if mainViewController.document != nil {
                 if mainViewController.document!.isEncrypted {
-                    let dic = [CPDFDocumentWriteOption.userPasswordOption : (mainViewController.document! as CPDFDocument).password, CPDFDocumentWriteOption.ownerPasswordOption : (mainViewController.document! as CPDFDocument).password]
-                    success = mainViewController.document!.write(to: url, withOptions: dic as [CPDFDocumentWriteOption : Any])
+                    success = mainViewController.document!.write(to: url)
                 } else {
                     if (mainViewController.needSave) {
 //                        success = KMPasswordInputWindow.saveDocument(mainViewController.document!)