Browse Source

【图章】标准图章都一样

liujiajie 10 months ago
parent
commit
97c5b92782

+ 2 - 2
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/Stamp/CStampSignatureObject.swift

@@ -69,7 +69,7 @@ let CPDFListStampFolderPath = ApplicationSupportDirectory.stringByAppendingPathC
         
         self.stampCategoryType = .standard
         self.stampType = standardStampType
-        let fileNamePath = "\(stampType).png"
+        let fileNamePath = "CStandardStampType/"+"\(stampType.rawValue).png"
         var stampPath = CPDFListStampFolderPath.stringByAppendingPathComponent("Standard")
         if !FileManager.default.fileExists(atPath: stampPath) {
             try? FileManager.default.createDirectory(atPath: stampPath, withIntermediateDirectories: true, attributes: nil)
@@ -299,7 +299,7 @@ let CPDFListStampFolderPath = ApplicationSupportDirectory.stringByAppendingPathC
         document!.insertPage(CGSize(width: 842.0, height: 595.0), at: 0)
 
         if self.stampCategoryType == CPDFStampType.standard {
-            let fileNamePath = "\(self.stampType).png"
+            let fileNamePath = "CStandardStampType/"+"\(stampType.rawValue).png"
             let stampPath = (CPDFListStampFolderPath.stringByAppendingPathComponent("Standard")).stringByAppendingPathComponent(fileNamePath)
             
             if !FileManager.default.fileExists(atPath: stampPath) {