Browse Source

【综合】获取自定义图章图片方式调整,偏好设置重置调整

niehaoyu 8 months ago
parent
commit
aabbcfb98b

+ 3 - 3
PDF Office/PDF Master/Class/PDFTools/CustomStamp/CustomStampWindowController.swift

@@ -328,9 +328,9 @@ class CustomStampWindowController: NSWindowController, CPDFViewDelegate, CPDFLis
             self.pdfView.setNeedsDisplay(anno)
         }
         
-        let imageRep = KMCropTools.newBitmapImageRepFromAnnotationForBox(page, .mediaBox)
-        let image = NSImage.init(size: imageRep!.size)
-        image.addRepresentation(imageRep!)
+        self.cropCurrentPage()
+        
+        let image = page.thumbnail(of: CGSizeMake(page.size.width*4, page.size.height*4))
 
         guard let callBack = self.clickHandle else {
             return

+ 4 - 3
PDF Office/PDF Master/Class/Preference/Tools/KMPreferenceManager.swift

@@ -2015,10 +2015,11 @@ extension KMPreferenceManager {
     }
     
     func resetIdentifyData() {
+        KMProfileInfo.shared().fullName = ""
         KMProfileInfo.shared().headName = ""
-         KMProfileInfo.shared().OrganizeName = ""
-         KMProfileInfo.shared().OrganizePart = ""
-         KMProfileInfo.shared().email = ""
+        KMProfileInfo.shared().OrganizeName = ""
+        KMProfileInfo.shared().OrganizePart = ""
+        KMProfileInfo.shared().email = ""
         
     }