Ver código fonte

【综合】AI功能自测调整

niehaoyu 1 ano atrás
pai
commit
489c2219e5

+ 1 - 1
PDF Office/PDF Master/Class/AIInfo/AIUserInfoController/AIUserInfoController.xib

@@ -112,7 +112,7 @@
                                             </constraints>
                                             <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="creditEmptyIcon" id="n3g-vl-CxG"/>
                                         </imageView>
-                                        <box boxType="custom" borderType="none" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="snp-Q1-6ab" customClass="KMBox">
+                                        <box boxType="custom" borderType="none" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="snp-Q1-6ab" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                             <rect key="frame" x="80" y="54" width="200" height="40"/>
                                             <view key="contentView" id="lFO-VI-aY7">
                                                 <rect key="frame" x="0.0" y="0.0" width="200" height="40"/>

+ 23 - 26
PDF Office/PDF Master/Class/GuideInfo/Controllers/KMFunctionGuideMultiController.swift

@@ -29,6 +29,8 @@ class KMFunctionGuideMultiController: NSViewController {
     
     let DigitalSignatureKey = "DigitalSignatureKey"
     let ComparePDFsKey = "ComparePDFsKey"
+    let AIInfoKey = "AIInfoKey"
+    
     var namesArr = Array<Any>()
     var currentNameKEY = String()
     
@@ -41,11 +43,11 @@ class KMFunctionGuideMultiController: NSViewController {
     override func viewDidLoad() {
         super.viewDidLoad()
         // Do view setup here.
-        
-        self.namesArr = [["name":"Digital Signature",
-                          "key":DigitalSignatureKey,
-                          "imageName":"whatNew_Digital",
-                          "description":"Digital signature verify the authenticity and integrity of documents, agreements, or contract, ensuring that the signature cannot be tampered with and provides a higher level of security."]]
+        self.namesArr = [["name":"AI Tools",
+                          "key":AIInfoKey,
+                          "infoTitle":"Experience the Power of PDF AI Tools",
+                          "imageName":"whatNew_AIGuide",
+                          "description":NSLocalizedString("• AI Summarize with a deep understanding of document", comment: "") + "\n" + NSLocalizedString("• AI Translate your document without leaving a PDF", comment: "") + "\n" + NSLocalizedString("• Check grammar, fix spelling errors to ensure a professional file", comment: "") + "\n" + NSLocalizedString("• Rewrite your PDF to enhance style and polish content", comment: "")]]
         let dict = self.namesArr.first as! NSDictionary
         self.currentNameKEY = dict["key"] as! String
         
@@ -57,13 +59,13 @@ class KMFunctionGuideMultiController: NSViewController {
         
         self.titleInfoView.wantsLayer = true
         self.getStartBox.wantsLayer = true
-        self.getStartBox.layer?.cornerRadius = 4
+        self.getStartBox.layer?.cornerRadius = CGRectGetHeight(self.getStartBox.frame)/2
         self.getStartBox.layer?.masksToBounds = true
         
         self.titleLabel.stringValue = NSLocalizedString("What‘s New", comment: "")
-        self.getStartLabel.stringValue = NSLocalizedString("Got it", comment: "")
-        self.learnButton.title = NSLocalizedString("Learn More", comment: "")
-        self.learnButton.toolTip = NSLocalizedString("Learn More", comment: "")
+        self.getStartLabel.stringValue = NSLocalizedString("Buy Now", comment: "")
+        self.learnButton.title = NSLocalizedString("Feedback", comment: "")
+        self.learnButton.toolTip = NSLocalizedString("Feedback", comment: "")
         
         self.titleLabel.font = NSFont.SFProTextHeavyFont(20)
         self.getStartLabel.font = NSFont.SFProTextSemiboldFont(14)
@@ -71,18 +73,18 @@ class KMFunctionGuideMultiController: NSViewController {
         self.desLabel.font = NSFont.SFProTextSemiboldFont(14)
         self.desSubLabel.font = NSFont.SFProTextRegularFont(14)
         
-        self.getStartButton.mouseMoveCallback = { [weak self] mouseEntered in
-            if KMAppearance.isDarkMode() {
+        self.getStartButton.wantsLayer = true
+        self.getStartButton.mouseMoveCallback = { [weak self] mouseEntered in            if KMAppearance.isDarkMode() {
                 if mouseEntered {
-                    self?.getStartBox.fillColor = NSColor(red: 23/255, green: 85/255, blue: 178/255, alpha: 1)
+                    self?.getStartButton.layer?.backgroundColor = NSColor.white.withAlphaComponent(0.2).cgColor
                 } else {
-                    self?.getStartBox.fillColor = KMAppearance.KMColor_Interactive_A0()
+                    self?.getStartButton.layer?.backgroundColor = NSColor.clear.cgColor
                 }
             } else {
                 if mouseEntered {
-                    self?.getStartBox.fillColor = NSColor(red: 56/255, green: 100/255, blue: 176/255, alpha: 1)
+                    self?.getStartButton.layer?.backgroundColor = NSColor.white.withAlphaComponent(0.2).cgColor
                 } else {
-                    self?.getStartBox.fillColor = NSColor(red: 73/255, green: 130/255, blue: 230/255, alpha: 1)
+                    self?.getStartButton.layer?.backgroundColor = NSColor.clear.cgColor
                 }
             }
         }
@@ -156,7 +158,7 @@ class KMFunctionGuideMultiController: NSViewController {
         for i in 0...self.namesArr.count - 1 {
             let dict = self.namesArr[i] as! NSDictionary
             if dict["key"] as! String == self.currentNameKEY {
-                self.desLabel.stringValue = NSLocalizedString(dict["name"] as! String, comment: "")
+                self.desLabel.stringValue = NSLocalizedString(dict["infoTitle"] as! String, comment: "")
                 self.desSubLabel.stringValue = NSLocalizedString(dict["description"] as! String, comment: "")
                 self.iconImage.image = NSImage(named: dict["imageName"] as! String)
             }
@@ -177,15 +179,15 @@ class KMFunctionGuideMultiController: NSViewController {
         self.learnButton.setTitleColor(KMAppearance.KMColor_Interactive_M0())
         
         if KMAppearance.isDarkMode() {
-            self.titleInfoView.layer?.backgroundColor = NSColor(red: 40/255.0, green: 40/255, blue: 40/255, alpha: 1).cgColor
-            self.descriptionBGView.layer?.backgroundColor = NSColor(red: 14/255.0, green: 17/255, blue: 20/255, alpha: 1).cgColor
+            self.titleInfoView.layer?.backgroundColor = NSColor(red: 14/255.0, green: 17/255, blue: 20/255, alpha: 1).cgColor
+            self.descriptionBGView.layer?.backgroundColor = NSColor(red: 40/255.0, green: 40/255, blue: 40/255, alpha: 1).cgColor
             self.titleLabel.textColor = NSColor.white
             self.desLabel.textColor = NSColor.white
             self.desSubLabel.textColor = NSColor(red: 200/255, green: 201/255, blue: 204/255, alpha: 1)
             self.getStartBox.fillColor = NSColor(red: 34/255, green: 122/255, blue: 255/255, alpha: 1)
         } else {
-            self.titleInfoView.layer?.backgroundColor = NSColor.white.cgColor
-            self.descriptionBGView.layer?.backgroundColor = NSColor(red: 235/255.0, green: 236/255, blue: 240/255, alpha: 1).cgColor
+            self.titleInfoView.layer?.backgroundColor = NSColor(red: 249/255.0, green: 249/255, blue: 252/255, alpha: 1).cgColor
+            self.descriptionBGView.layer?.backgroundColor = NSColor.white.cgColor
             self.titleLabel.textColor = NSColor(red: 0, green: 33/255, blue: 67/255, alpha: 1)
             self.desLabel.textColor = NSColor(red: 14/255, green: 17/255, blue: 20/255, alpha: 1)
             self.desSubLabel.textColor = NSColor(red: 14/255, green: 17/255, blue: 20/255, alpha: 1)
@@ -209,13 +211,8 @@ class KMFunctionGuideMultiController: NSViewController {
     }
     
     @IBAction func learnMoreAction(_ sender: Any) {
-#if VERSION_DMG
-        var url = URL(string:"https://www.pdfreaderpro.com/blog/digital-signature-update-mac-and-windows?utm_source=app_dmg&utm_medium=whatsnew_digitalsign_blog")!
-        NSWorkspace.shared.open(url)
-#else
-        var url = URL(string:"https://www.pdfreaderpro.com/blog/digital-signature-update-mac-and-windows?utm_source=app_mac&utm_medium=whatsnew_digitalsign_blog")!
+        let url = URL(string:NSLocalizedString("https://forms.gle/crjCAW4cnF7eq1vQ6", comment: ""))!
         NSWorkspace.shared.open(url)
-#endif
     }
     
     @IBAction func previousAction(_ sender: Any) {

+ 5 - 5
PDF Office/PDF Master/Class/GuideInfo/Controllers/KMFunctionGuideMultiController.xib

@@ -6,7 +6,7 @@
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMFunctionGuideMultiController" customModule="PDF_Master" customModuleProvider="target">
+        <customObject id="-2" userLabel="File's Owner" customClass="KMFunctionGuideMultiController" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <connections>
                 <outlet property="contendView" destination="TY5-yF-SZr" id="sih-Zb-vDg"/>
                 <outlet property="desLabel" destination="h9u-pa-nqn" id="dwU-eM-iM0"/>
@@ -69,7 +69,7 @@
                                                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                                         </textFieldCell>
                                                     </textField>
-                                                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="bNV-bb-hUn" customClass="KMButton" customModule="PDF_Master" customModuleProvider="target">
+                                                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="bNV-bb-hUn" customClass="KMButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                                         <rect key="frame" x="0.0" y="0.0" width="120" height="32"/>
                                                         <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="G0x-Qt-ZVB">
                                                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -98,7 +98,7 @@
                                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="ZqB-a4-2Kx">
                                             <rect key="frame" x="120" y="0.0" width="120" height="32"/>
                                             <subviews>
-                                                <button allowsExpansionToolTips="YES" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BLI-t8-GUb" customClass="HyperLinkButton" customModule="PDF_Master" customModuleProvider="target">
+                                                <button allowsExpansionToolTips="YES" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="BLI-t8-GUb" customClass="HyperLinkButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                                     <rect key="frame" x="20" y="8" width="73" height="16"/>
                                                     <buttonCell key="cell" type="bevel" title="Learn More" bezelStyle="rounded" alignment="center" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" id="rFj-Aj-3Hq">
                                                         <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -151,7 +151,7 @@
                                     </constraints>
                                     <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="axesIndependently" image="whatNew_Digital" id="Lb7-E2-Hao"/>
                                 </imageView>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="WXK-no-Mi5" customClass="KMButton" customModule="PDF_Master" customModuleProvider="target">
+                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="WXK-no-Mi5" customClass="KMButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                     <rect key="frame" x="360" y="168" width="24" height="24"/>
                                     <buttonCell key="cell" type="bevel" bezelStyle="rounded" image="arrow_down_sel" imagePosition="overlaps" alignment="center" imageScaling="proportionallyDown" inset="2" id="eel-L1-lBe">
                                         <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -185,7 +185,7 @@
                                         <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                     </textFieldCell>
                                 </textField>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="g30-Mi-n9I" customClass="KMButton" customModule="PDF_Master" customModuleProvider="target">
+                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="g30-Mi-n9I" customClass="KMButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                     <rect key="frame" x="392" y="168" width="24" height="24"/>
                                     <buttonCell key="cell" type="bevel" bezelStyle="rounded" image="arrow_right_sel" imagePosition="overlaps" alignment="center" imageScaling="proportionallyDown" inset="2" id="beh-Eg-Ukr">
                                         <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>

+ 1 - 1
PDF Office/PDF Master/Class/GuideInfo/Controllers/KMFunctionGuideNameItemView.xib

@@ -9,7 +9,7 @@
         <customObject id="-2" userLabel="File's Owner"/>
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <customView id="c22-O7-iKe" customClass="KMFunctionGuideNameItemView" customModule="PDF_Master" customModuleProvider="target">
+        <customView id="c22-O7-iKe" customClass="KMFunctionGuideNameItemView" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <rect key="frame" x="0.0" y="0.0" width="240" height="32"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
             <subviews>

+ 2 - 2
PDF Office/PDF Master/Class/GuideInfo/Controllers/KMFunctionGuideSingleController.xib

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>

+ 3 - 3
PDF Office/PDF Master/Class/GuideInfo/Controllers/KMGuideCoverView.xib

@@ -1,15 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
         <customObject id="-2" userLabel="File's Owner"/>
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <customView id="c22-O7-iKe" customClass="KMGuideCoverView" customModule="PDF_Master" customModuleProvider="target">
+        <customView id="c22-O7-iKe" customClass="KMGuideCoverView" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <rect key="frame" x="0.0" y="0.0" width="480" height="272"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
             <point key="canvasLocation" x="131" y="-72"/>

+ 4 - 4
PDF Office/PDF Master/Class/GuideInfo/Controllers/OpenFileGuide/KMOpenFileGuideProperty.xib

@@ -9,7 +9,7 @@
         <customObject id="-2" userLabel="File's Owner"/>
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <customView id="c22-O7-iKe" customClass="KMOpenFileGuideProperty" customModule="PDF_Master" customModuleProvider="target">
+        <customView id="c22-O7-iKe" customClass="KMOpenFileGuideProperty" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <rect key="frame" x="0.0" y="0.0" width="585" height="366"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
             <subviews>
@@ -59,7 +59,7 @@
                                         <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                     </textFieldCell>
                                 </textField>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="46r-va-mAx" customClass="HyperLinkButton" customModule="PDF_Master" customModuleProvider="target">
+                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="46r-va-mAx" customClass="HyperLinkButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                     <rect key="frame" x="20" y="24" width="31" height="16"/>
                                     <buttonCell key="cell" type="bevel" title="Skip" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="YCH-1c-XwV">
                                         <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -91,7 +91,7 @@
                                                     <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                                 </textFieldCell>
                                             </textField>
-                                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="E20-c9-JNo" customClass="KMButton" customModule="PDF_Master" customModuleProvider="target">
+                                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="E20-c9-JNo" customClass="KMButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                                 <rect key="frame" x="0.0" y="0.0" width="72" height="22"/>
                                                 <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="y1b-Mz-GlH">
                                                     <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
@@ -130,7 +130,7 @@
                                                     <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                                 </textFieldCell>
                                             </textField>
-                                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9zr-OX-UJ0" customClass="KMButton" customModule="PDF_Master" customModuleProvider="target">
+                                            <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9zr-OX-UJ0" customClass="KMButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
                                                 <rect key="frame" x="0.0" y="0.0" width="52" height="22"/>
                                                 <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="25f-OL-Gbl">
                                                     <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>

+ 22 - 0
PDF Office/PDF Master/Class/GuideInfo/KMFunctionGuideWindowController.swift

@@ -22,6 +22,14 @@ class KMFunctionGuideWindowController: NSWindowController {
             if (UserDefaults.standard.object(forKey: kKMGuideInfoMultiDigitalKey) == nil) {
                 return true
             }
+        } else if type == .functionMultiAIGuide {
+//            if (UserDefaults.standard.object(forKey: kKMGuideInfoMultiAIGuideKey) == nil) {
+                return true
+//            }
+        } else if type == .aiInfoResultSave {
+            if (UserDefaults.standard.object(forKey: kKMGuideInfoAIResultSaveKey) == nil) {
+                return true
+            }
         }
         return false
     }
@@ -31,6 +39,14 @@ class KMFunctionGuideWindowController: NSWindowController {
             //V3.2.0添加数字签名引导
             UserDefaults.standard.setValue("Show", forKey: kKMGuideInfoMultiDigitalKey)
             UserDefaults.standard.synchronize()
+        } else if type == .functionMultiAIGuide {
+            //V3.3.0添加AI引导
+            UserDefaults.standard.setValue("Show", forKey: kKMGuideInfoMultiAIGuideKey)
+            UserDefaults.standard.synchronize()
+        } else if type == .aiInfoResultSave {
+            //V3.3.0添加AI引导
+            UserDefaults.standard.setValue("Show", forKey: kKMGuideInfoAIResultSaveKey)
+            UserDefaults.standard.synchronize()
         }
     }
     
@@ -76,6 +92,12 @@ class KMFunctionGuideWindowController: NSWindowController {
             } else if _type == .functionMulti {
                 self.multiController = KMFunctionGuideMultiController.init()
                 self.multiController.clickHandle = { controller in
+#if VERSION_DMG
+                    var url = URL(string:kAIStoreServerLink)!
+                    NSWorkspace.shared.open(url)
+#else
+                    AIPurchaseWindowController.currentWC().showWindow(nil)
+#endif
                     self.closeAction()
                 }
             }

+ 2 - 2
PDF Office/PDF Master/Class/GuideInfo/KMFunctionGuideWindowController.xib

@@ -6,7 +6,7 @@
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMFunctionGuideWindowController" customModule="PDF_Master" customModuleProvider="target">
+        <customObject id="-2" userLabel="File's Owner" customClass="KMFunctionGuideWindowController" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <connections>
                 <outlet property="contendBox" destination="tEL-IL-6d8" id="Fpa-IE-FOD"/>
                 <outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
@@ -15,7 +15,7 @@
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
         <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" titlebarAppearsTransparent="YES" titleVisibility="hidden" id="F0z-JX-Cv5">
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" fullSizeContentView="YES"/>
+            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" fullSizeContentView="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="196" y="240" width="574" height="387"/>
             <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>

+ 2 - 0
PDF Office/PDF Master/Class/GuideInfo/KMGuideConfig.swift

@@ -12,8 +12,10 @@ let kKMGuideInfoOpenFileNormalKey = "kKMGuideInfoOpenFileNormalKey"
 let kKMGuideInfoPDFCompareKey     = "kKMGuideInfoPDFCompareKey"
 let kKMGuideInfoDigitalSignKey    = "kKMGuideInfoDigitalSignKey"
 let kKMGuideInfoMultiDigitalKey   = "kKMGuideInfoMultiDigitalKey"
+let kKMGuideInfoMultiAIGuideKey   = "kKMGuideInfoMultiAIGuideKey"
 let kKMGuideInfoFileConvertKey   = "kKMGuideInfoFileConvertKey"
 let kKMGuideInfoCustomColorKey   = "kKMGuideInfoCustomColorKey"
+let kKMGuideInfoAIResultSaveKey  = "kKMGuideInfoAIResultSaveKey"
 
 @objc public enum KMGuideInfoType: NSInteger {
     case none = 0

+ 3 - 3
PDF Office/PDF Master/Class/GuideInfo/KMGuideInfoWindow.xib

@@ -1,15 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
         <customObject id="-2" userLabel="File's Owner"/>
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="KMGuideInfoWindow" customModule="PDF_Master" customModuleProvider="target">
+        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="KMGuideInfoWindow" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <windowStyleMask key="styleMask" closable="YES" miniaturizable="YES" resizable="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="196" y="240" width="480" height="270"/>

+ 20 - 0
PDF Office/PDF Master/Class/GuideInfo/KMGuideInfoWindowController.swift

@@ -213,6 +213,11 @@ class KMGuideInfoWindowController: NSWindowController {
                         //Next
                         self.type = .openFileNormalProperty
                         self.loadGuideInfoView()
+//                        guard let callBack = self.openFileToggleHandle else {
+//                            return
+//                        }
+//                        callBack(self, .openFileNormalProperty)
+//                        self.closeAction()
                     }
                 }
                 self.openFileGuidePanel.circleRect = self.openPanelRect
@@ -257,10 +262,20 @@ class KMGuideInfoWindowController: NSWindowController {
                             return
                         }
                         callBack(self)
+//                        guard let callBack = self.openFileToggleHandle else {
+//                            return
+//                        }
+//                        callBack(self, .openFileNormalPanel)
+//                        self.closeAction()
                     } else if actionType == .next {
                         //Next
                         self.type = .openFileNormalToolbar
                         self.loadGuideInfoView()
+//                        guard let callBack = self.openFileToggleHandle else {
+//                            return
+//                        }
+//                        callBack(self, .openFileNormalToolbar)
+//                        self.closeAction()
                     }
                 }
                 self.openFileGuideProperty.circleRect = self.rightPanelRect
@@ -296,6 +311,11 @@ class KMGuideInfoWindowController: NSWindowController {
                         //Next
                         self.type = .openFileNormalProperty
                         self.loadGuideInfoView()
+//                        guard let callBack = self.openFileToggleHandle else {
+//                            return
+//                        }
+//                        callBack(self, .openFileNormalProperty)
+//                        self.closeAction()
                     } else if actionType == .finish {
                         guard let callBack = self.normalGuideFinishHandle else {
                             return

+ 3 - 3
PDF Office/PDF Master/Class/GuideInfo/KMGuideInfoWindowController.xib

@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMGuideInfoWindowController" customModule="PDF_Master" customModuleProvider="target">
+        <customObject id="-2" userLabel="File's Owner" customClass="KMGuideInfoWindowController" customModule="PDF_Reader_Pro" customModuleProvider="target">
             <connections>
                 <outlet property="contendBox" destination="gNV-1b-lEO" id="bBA-t7-NOS"/>
                 <outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>

+ 2 - 2
PDF Office/PDF Master/Class/Home/ViewController/KMHomeViewController.swift

@@ -864,13 +864,13 @@ extension KMHomeViewController {
     
     //MARK: what's New
     func loadNewUserGuide() -> Void {
-        if KMFunctionGuideWindowController.availableShow(.functionMulitDidital) {
+        if KMFunctionGuideWindowController.availableShow(.functionMultiAIGuide) {
             let guideWindowVC = KMFunctionGuideWindowController.init(windowNibName: "KMFunctionGuideWindowController")
             guideWindowVC.type = .functionMulti
             guideWindowVC.showWindow(nil)
             guideWindowVC.window?.orderFront(nil)
             
-            KMFunctionGuideWindowController.setDidShowFor(.functionMulitDidital)
+            KMFunctionGuideWindowController.setDidShowFor(.functionMultiAIGuide)
         }
     }