|
@@ -87,7 +87,8 @@ class CustomStampWindowController: NSWindowController, CPDFViewDelegate, CPDFLis
|
|
|
self.pdfView.document = pdfDocument
|
|
|
self.pdfView.delegate = self
|
|
|
self.pdfView.pdfListViewDelegate = self
|
|
|
- self.pdfView.autoScales = true
|
|
|
+ self.pdfView.autoScales = false
|
|
|
+ self.pdfView.scaleFactor = 1
|
|
|
self.pdfView.isCustomStampType = "1"
|
|
|
|
|
|
self.pdfContendView.wantsLayer = true
|
|
@@ -192,6 +193,12 @@ class CustomStampWindowController: NSWindowController, CPDFViewDelegate, CPDFLis
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ func clear() {
|
|
|
+ self.removeEventMonitor()
|
|
|
+ CustomStampWindowController.currentWindowController = nil
|
|
|
+ NotificationCenter.default.removeObserver(self)
|
|
|
+ }
|
|
|
+
|
|
|
//MARK: Private Method
|
|
|
func chooseImage() {
|
|
|
let accessoryCtr = KMImageAccessoryController()
|