Browse Source

【UI替换】编辑工具 - 预览视图初始化

lizhe 1 year ago
parent
commit
814d644d35

+ 1 - 0
PDF Office/PDF Master/Class/PDFTools/AddHeaderFooter/New/View/KMHeaderFooterView.swift

@@ -155,6 +155,7 @@ class KMHeaderFooterView: KMBaseXibView, NSTextViewDelegate, NSComboBoxDelegate
     var type: KMBatchModifyTemplateType = .Add // Replace with the actual type
     var pdfDocument: CPDFDocument? {
         didSet {
+            self.pdfView.document = pdfDocument
             self.reloadData()
         }
     }

+ 1 - 0
PDF Office/PDF Master/Class/PDFTools/Background/New/View/KMAddBackgroundView.swift

@@ -72,6 +72,7 @@ class KMAddBackgroundView: KMBaseXibView, NSComboBoxDelegate {
     var type: KMBackgroundManagerType = .add
     var pdfDocument: CPDFDocument? {
         didSet {
+            self.pdfView.document = pdfDocument
             self.reloadData()
         }
     }

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

@@ -97,6 +97,7 @@ class KMWatermarkView: KMBaseXibView, NSTextFieldDelegate, NSComboBoxDelegate, N
     var type: KMWatermarkManagerType = .add
     var pdfDocument: CPDFDocument? {
         didSet {
+            self.pdfView.document = pdfDocument
             self.reloadData()
         }
     }