Browse Source

【编辑工具】水印 - 保存文件名错误调整

lizhe 1 year ago
parent
commit
8b274d7917

+ 1 - 1
PDF Office/PDF Master/Class/PDFTools/Watermark/New/View/KMWatermarkView.swift

@@ -777,7 +777,7 @@ extension KMWatermarkView {
             
             self.cancelAction?(self)
         } else if self.type == .use {
-            let fileName = "\(self.pdfDocument?.documentURL.lastPathComponent.deletingPathExtension ?? "Untitled")_Watermark"
+            let fileName = "\(self.pdfDocument?.documentURL.lastPathComponent ?? "Untitled")_Watermark"
             let savePanelAccessoryViewController = KMSavePanelAccessoryController()
             let savePanel = NSSavePanel()
             savePanel.nameFieldStringValue = fileName