|
@@ -351,6 +351,9 @@ class KMWatermarkView: KMBaseXibView, NSTextFieldDelegate, NSComboBoxDelegate, N
|
|
|
checkAngle()
|
|
|
}
|
|
|
|
|
|
+ override func addNotification() {
|
|
|
+ NotificationCenter.default.addObserver(self, selector: #selector(pageChangeNotification), name: NSNotification.Name.CPDFViewPageChanged, object: self.pdfView)
|
|
|
+ }
|
|
|
func updatePDFView() {
|
|
|
// pdfView.needsDisplay = true
|
|
|
self.pdfView.setNeedsDisplayForVisiblePages()
|
|
@@ -937,7 +940,7 @@ extension KMWatermarkView {
|
|
|
pdfView.goToPreviousPage(sender)
|
|
|
}
|
|
|
let index = pdfDocument?.index(for: pdfView.currentPage())
|
|
|
- currentPageIndexTextF.stringValue = "\(index! + 1)"
|
|
|
+// currentPageIndexTextF.stringValue = "\(index! + 1)"
|
|
|
}
|
|
|
|
|
|
@IBAction func goNext(_ sender: Any) {
|
|
@@ -946,7 +949,7 @@ extension KMWatermarkView {
|
|
|
}
|
|
|
|
|
|
let index = pdfDocument!.index(for: pdfView.currentPage())
|
|
|
- currentPageIndexTextF.stringValue = "\(index + 1)"
|
|
|
+// currentPageIndexTextF.stringValue = "\(index + 1)"
|
|
|
}
|
|
|
|
|
|
@IBAction func fontSizeComboxAction(_ sender: NSComboBox) {
|