Selaa lähdekoodia

【综合】填写与签名,点击日期crash修复

tangchao 11 kuukautta sitten
vanhempi
commit
5d558feef8

+ 2 - 2
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/ViewController/KMFillSignTextPanel.swift

@@ -566,13 +566,13 @@ class KMFillSignTextPanel: KMPropertiesPanelSubViewController {
             for fontDic in CPDFAnnotationModel.supportFonts() {
                 let fontName = (fontDic as! [String : [String]]).keys.first ?? "Helvetica"
                 let font = NSFont(name: fontName, size: 12.0)
-                let family = currentFont?.fontDescriptor.object(forKey: .family)
+                let family = currentFont?.fontDescriptor.object(forKey: .family) ?? ""
                 
                 if family as! String == fontName {
                     dic = (fontDic as! [String : [String]])
                 }
             }
-            let style = currentFont!.fontDescriptor.object(forKey: .face) as! String
+            let style = currentFont?.fontDescriptor.object(forKey: .face) as? String ?? ""
             if dic != nil {
                 let selectedIndex = CPDFAnnotationModel.supportFonts().index(of: dic as Any)
                 self.fontNameVC.selectItem(at: selectedIndex)

+ 12 - 0
PDF Office/PDF Master/Class/README.md

@@ -72,6 +72,12 @@
 * 背景模板 KMBatchOperateAddWatermarkViewController
 * 背景模板编辑 KMBackgroundWindowController
 
+- 填写与签名
+* 日期 KMFillSignTextPanel
+
+- 编辑PDF
+* 图片 KMEditImagePropertyViewController
+
 ## What's New
 * KMFunctionGuideWindowController
 
@@ -87,6 +93,12 @@
 
 * 自定义注释工具 KMToolbarCustomWindowController
 
+## 数字签名
+* KMPDFDigitalSignViewController
+
+## 导入 [扫描仪 & 相册]
+* KMDeviceBrowserWindowController
+
 ## xxx
 
 [sign in](https://www.baidu.com) the [dashboard](https://www.baidu.com). to [sign up](https://www.baidu.com)