Browse Source

【2025】【Markup】图章&签名逻辑整理

niehaoyu 3 months ago
parent
commit
1e77aac522
28 changed files with 45 additions and 5709 deletions
  1. 1 25
      PDF Office/PDF Master/Class/Document/KMDocumentController.swift
  2. 0 18
      PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift
  3. 0 2
      PDF Office/PDF Master/Class/README.md
  4. 0 0
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/KMImageAccessoryController.swift
  5. 0 0
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/KMImageAccessoryController.xib
  6. 7 4
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/KMSignatureListController.swift
  7. 0 22
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureAnnotationViewController.h
  8. 0 440
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureAnnotationViewController.m
  9. 0 190
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureAnnotationViewController.xib
  10. 0 15
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureWindowController.h
  11. 0 697
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureWindowController.m
  12. 0 720
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureWindowController.xib
  13. 0 146
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSigntureViewItem.swift
  14. 0 64
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSigntureViewItem.xib
  15. 1 1
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/Controllers/KMCreateStampWindowController.xib
  16. 0 256
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/Controller/KMStampCreaterWindowController.swift
  17. 0 398
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/Controller/KMStampCreaterWindowController.xib
  18. 0 1467
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMAnnotationStampViewController.swift
  19. 0 791
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMAnnotationStampViewController.xib
  20. 0 135
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMDynamicStampViewController.swift
  21. 0 134
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMDynamicStampViewController.xib
  22. 7 11
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/KMStampListController.swift
  23. 23 8
      PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/Views/KMStampListItem.swift
  24. 0 1
      PDF Office/PDF Master/PDF_Reader_Pro DMG-Bridging-Header.h
  25. 0 1
      PDF Office/PDF Master/PDF_Reader_Pro Edition-Bridging-Header.h
  26. 0 1
      PDF Office/PDF Master/PDF_Reader_Pro-Bridging-Header.h
  27. 2 110
      PDF Office/PDF Reader Pro.xcodeproj/project.pbxproj
  28. 4 52
      PDF Office/PDF Reader Pro.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

+ 1 - 25
PDF Office/PDF Master/Class/Document/KMDocumentController.swift

@@ -98,31 +98,7 @@ class KMDocumentController: NSDocumentController {
     }
 
     @IBAction func newDocumentFromImage(_ sender: Any) {
-//        let openPanel = NSOpenPanel()
-//        openPanel.allowedFileTypes = KMImageAccessoryController.supportedImageTypes()
-//        openPanel.allowsMultipleSelection = true
-//        openPanel.message = NSLocalizedString("Select images to create a new document. To select multiple files press cmd ⌘ button on keyboard and click on the target files one by one.", comment: "")
-//        openPanel.beginSheetModal(for: NSApp.mainWindow!) { response in
-//            let savePath = self.kNewDocumentTempSavePath("convertToPDF.pdf")
-//            if response == .OK {
-//                KMConvertPDFManager.convertImages(openPanel.urls, savePath: savePath) { success, errorDic in
-//                    if !success || !FileManager.default.fileExists(atPath: savePath) {
-//                        if FileManager.default.fileExists(atPath: savePath) {
-//                            try? FileManager.default.removeItem(atPath: savePath)
-//                        }
-//
-//                        let alert = NSAlert()
-//                        alert.alertStyle = .critical
-//                        alert.messageText = NSLocalizedString("Conversion Failed", comment: "")
-//                        alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
-//                        alert.runModal()
-//                        return
-//                    }
-//                    self.savePdf(savePath)
-//                    try? FileManager.default.removeItem(atPath: savePath)
-//                }
-//            }
-//        }
+ 
     }
     
     @IBAction func importFromWebPage(_ sender: Any) {

+ 0 - 18
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift

@@ -2182,24 +2182,6 @@ extension KMMainViewController {
         self.km_beginSheet(windowC: extract!)
         extract?.selectCurrentPageBtn()
     }
-    //MARK: 创建文字图章示例实际上不会在这里使用
-    func showCreateStamp() {
-        let stampCreaterWindowController = KMStampCreaterWindowController()
-        stampCreaterWindowController.window?.backgroundColor = .clear
-        self.km_beginSheet(windowC: stampCreaterWindowController)
-        stampCreaterWindowController.beginSheetModal(for: self.view.window) { [weak self] result in
-            if result == 1 {
-            }
-        }
-    }
-    //MARK: 添加签名示例实际上不会在这里使用
-    func showAddSignature() {
-        let signatureWindowController = KMSignatureWindowController(windowNibName: "KMSignatureWindowController")
-        
-        self.view.window?.beginSheet(signatureWindowController.window!, completionHandler: { returnCode in
-            
-        })
-    }
     
     func beginProgressSheet(withMessage message: String, maxValue: UInt) {
         

+ 0 - 2
PDF Office/PDF Master/Class/README.md

@@ -147,8 +147,6 @@
 - 【注释】
 * KMAnnotationPropertiesViewController
 
-* 图章 KMAnnotationStampViewController
-
 * 签名 KMSignatureAnnotationViewController
 
 * 水印

PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMImageAccessoryController.swift → PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/KMImageAccessoryController.swift


PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMImageAccessoryController.xib → PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/KMImageAccessoryController.xib


+ 7 - 4
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/KMSignatureListController.swift

@@ -67,14 +67,17 @@ class KMSignatureListController: NSViewController {
     private func collectionViewSelectedChanged() {
         let indexs = collectionView.selectionIndexPaths
         
+        var idx = -1
         if indexs.count > 0 {
             for index in indexs {
-                 
+                idx = index.item
             }
-        } else {
-            
         }
-        DispatchQueue.main.async {
+        if idx >= 0 && idx < allObjects.count {
+            let signature = self.allObjects[idx]
+            signature.isSelect = true
+            let signObject = CStampSignatureObject(signatureImage: signature.pathsImage)
+            self.pdfView?.setAddStamp(signObject, keepToolModel: true)
             
         }
     }

+ 0 - 22
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureAnnotationViewController.h

@@ -1,22 +0,0 @@
-//
-//  KMSignatureAnnotationViewController.h
-//  PDF Reader Pro
-//
-//  Created by lxy on 2023/1/10.
-//
-
-#import <Cocoa/Cocoa.h>
-#import "CPDFListView.h"
-#import "CPDFAnnotationModel.h"
-
-@interface KMSignatureAnnotationViewController : NSViewController
-
-@property (nonatomic,strong) CPDFAnnotationModel *annotationModel;
-
-@property (nonatomic,strong) CPDFListView *pdfView;
-
-@property (nonatomic,assign) BOOL isClickSignatureList;
-
-@end
-
-

+ 0 - 440
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureAnnotationViewController.m

@@ -1,440 +0,0 @@
-//
-//  KMSignatureAnnotationViewController.m
-//  PDF Reader Pro
-//
-//  Created by lxy on 2023/1/10.
-//
-
-#import "KMSignatureAnnotationViewController.h"
-#import <PDF_Reader_Pro-Swift.h>
-
-@interface KMSignatureAnnotationViewController ()<NSCollectionViewDelegate,
-NSCollectionViewDataSource,
-KMSigntureViewItemDelegate>
-
-@property (weak) IBOutlet NSBox *emptyBox;
-@property (weak) IBOutlet NSTextField *signatureLabel;
-@property (weak) IBOutlet NSTextField *emptyTipLabel;
-@property (weak) IBOutlet NSTextField *emptyMinTipLabel;
-@property (nonatomic,strong) NSMutableArray <KMSignature *>*signatures;
-@property (nonatomic,strong) NSMutableArray <KMSignature *>* selectSignatures;
-@property (strong) IBOutlet NSButton *addButton;
-
-@property (strong) IBOutlet NSCollectionView *collectionView;
-@property (nonatomic,strong)  KMSignature *clickSignature;
-@property (nonatomic, retain) CALayer *addButtonLayer;
-
-@property (nonatomic, strong) KMSignatureWindowController *winC;
-
-@property (nonatomic, assign) BOOL isFirstAppear;
-
-@end
-
-@implementation KMSignatureAnnotationViewController
-
-- (void)viewDidAppear{
-    [super viewDidAppear];
-    KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-    [signatureManager loadAllSignatureList];
-    if (signatureManager.signatureList.count <= 0) {
-        if (self.isFirstAppear == NO) {
-            return;
-        }
-        [self showSignatureWindow];
-    }
-    
-    self.isFirstAppear = NO;
-}
-
-- (void)viewDidLoad {
-    [super viewDidLoad];
-
-    self.isFirstAppear = YES;
-    
-    self.signatures = [[NSMutableArray alloc] init];
-    self.selectSignatures = [[NSMutableArray alloc] init];
-    [self reloadDataSignatures];
-        
-    self.collectionView.delegate = self;
-    self.collectionView.dataSource = self;
-    [self.collectionView registerClass:[KMSigntureViewItem class] forItemWithIdentifier:@"kmSigntureViewItem"];
-    self.collectionView.backgroundColors = @[[NSColor clearColor]];
-    self.collectionView.selectable = YES;
-    self.collectionView.allowsMultipleSelection = YES;
-    
-    [self setup];
-    [self updateLanguage];
-     
-}
-
-- (void)setup {
-    self.signatureLabel.font = [NSFont SFProTextSemiboldFont: 14.0];
-    self.signatureLabel.textColor = [KMAppearance KMColor_Layout_H0];
- 
-    self.emptyTipLabel.font = [NSFont SFProTextRegularFont: 14.0];
-    self.emptyTipLabel.textColor = [NSColor km_initWithHex:@"#616469" alpha:1];
-    
-    _addButton.wantsLayer = YES;
-    _addButton.layer.backgroundColor = [NSColor colorWithRed:78/255. green:127/255. blue:219/255. alpha:1.0].CGColor;
-    _addButton.title = [NSString stringWithFormat:@"  %@", NSLocalizedString(@"New Signature", nil)];
-    [_addButton setTitleColor:[NSColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0]];
-    _addButton.image = [NSImage imageNamed:@"KMImageNameUXIconBtnAddWhite"];
-
-}
-
-- (void)updateLanguage {
-    self.signatureLabel.stringValue = NSLocalizedString(@"Signature", nil);
-    self.emptyTipLabel.stringValue = NSLocalizedString(@"No Signatures", nil);
-    self.emptyMinTipLabel.stringValue = NSLocalizedString(@"Click \"New Signature\" button below to create a signature.", nil);
-    
-    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
-    paragraphStyle.lineHeightMultiple = 1.32;
-    paragraphStyle.alignment = NSTextAlignmentCenter;
-    NSDictionary* dic = [NSDictionary dictionaryWithObjectsAndKeys: [NSFont SFProTextRegularFont: 12.0],NSFontAttributeName,
-                         [NSColor km_initWithHex:@"#94989C" alpha:1],
-                         NSForegroundColorAttributeName,paragraphStyle,NSParagraphStyleAttributeName,nil];
-    
-    NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:self.emptyMinTipLabel.stringValue];
-    [string addAttributes:dic range:NSMakeRange(0, string.length)];
-    
-    NSRange range = [self.emptyMinTipLabel.stringValue rangeOfString:NSLocalizedString(@"Add button", comment: "")];
-    [string setAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [NSFont SFProTextSemiboldFont: 12.0],NSFontAttributeName,
-                          [NSColor km_initWithHex:@"#94989C" alpha:1],
-                           NSForegroundColorAttributeName,paragraphStyle,NSParagraphStyleAttributeName,nil] range:range];
-    
-    self.emptyMinTipLabel.attributedStringValue = string;
-}
-
-
-- (void)tableViewMenu {
-    NSMenu *menu = [[NSMenu alloc] init];
- 
-    [menu addItemWithTitle:NSLocalizedString(@"Remove All", nil) action:@selector(deleteAllCustomizeStamp) target:self];
-    self.collectionView.menu = menu;
-}
-
-- (void)tableCellCloseButton_Click:(NSButton *)button {
-    NSInteger clickIndex = [self.signatures indexOfObject:self.clickSignature];
-
-    if(button.tag >= 0 && button.tag < self.signatures.count) {
-        KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-        [signatureManager loadAllSignatureList];
-        [signatureManager removeObjectWithIndex:button.tag];
-        [signatureManager saveSingaturesToFile];
-        [self reloadDataSignatures];
-    }
-    
-    if(clickIndex == button.tag) {
-        [self.pdfView setAddStampObject:nil keepToolModel:false];
-    }
-}
-
-- (IBAction)insertSignatureButton_Click:(id)sender {
-    if (![[IAPProductsManager defaultManager] isAvailableAllFunction]) {
-        NSWindowController *winC = [KMPurchaseCompareWindowController sharedInstance];
-        if (self.kEventTag == 1) {
-            winC.kEventName = @"Reading_FillSign_Signature_BuyNow";
-        } else {
-            winC.kEventName = @"Reading_Signature_BuyNow";
-        }
-        
-        [winC showWindow:nil];
-        return;
-    }
-    [self showSignatureWindow];
-}
-
-- (void)showSignatureWindow{
-    if (self.winC != nil) {
-        return;
-    }
-    
-    KMSignatureWindowController *signatureWindowController = [[KMSignatureWindowController alloc] init];
-    self.winC = signatureWindowController;
-    [self.view.window beginSheet:signatureWindowController.window completionHandler:^(NSModalResponse returnCode) {
-        self.winC = nil;
-        if (returnCode != 0) {
-            [self reloadDataSignaturesIsSelectLast:YES];
-        }
-    }];
-}
-
-- (void)reloadDataSignatures {
-    [self reloadDataSignaturesIsSelectLast:NO];
-}
-
-- (void)reloadDataSignaturesIsSelectLast:(BOOL)selectLast {
-    [self.signatures removeAllObjects];
-    KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-    [signatureManager loadAllSignatureList];
-    [self.signatures addObjectsFromArray:signatureManager.signatureList];
-    if (selectLast && self.signatures.count > 0) {
-        [self.selectSignatures removeAllObjects];
-        KMSignature *selectedSig = self.signatures.lastObject;
-        selectedSig.isSelect = YES;
-        [self.selectSignatures addObject:selectedSig];
-        
-        CStampSignatureObject *sigObject = [[CStampSignatureObject alloc] initWithSignatureImage:selectedSig.pathsImage];
-        self.clickSignature = selectedSig;
-        [self.pdfView setAddStampObject:sigObject keepToolModel:true];
-    }
-    
-    if (_signatures.count > 0) {
-        [self reloadCustomEmptyState:NO];
-        [self tableViewMenu];
-    } else {
-        [self reloadCustomEmptyState:YES];
-        self.collectionView.menu = nil;
-    }
-    [self.collectionView reloadData];
-}
-
-- (void)reloadCustomEmptyState:(BOOL)isEmpty {
-    if (isEmpty) {
-        self.emptyBox.hidden = NO;
-        self.collectionView.hidden = YES;
-    } else {
-        self.emptyBox.hidden = YES;
-        self.collectionView.hidden = NO;
-    }
-}
-
-
-//MARK: menu Action
-
-- (void)exportCustomizeStamp:(NSMenuItem *)sender {
-    if (self.collectionView.selectionIndexes.count != 1) {
-        return;
-    }
-    
-    NSInteger index = 0;
-    for (NSIndexPath *indexPath in self.collectionView.selectionIndexPaths) {
-        index = indexPath.item;
-    }
-    NSInteger type = sender.tag;
-    NSImage *image = self.signatures[index].pathsImage;
-    if (type == 0) {
-        NSData *data = image.TIFFRepresentation;
-        NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:data];
-        [imageRep setSize:image.size];
-        NSData *imageData = [imageRep representationUsingType:NSBitmapImageFileTypePNG properties:@{}];
-        
-        NSSavePanel *savePanel = [NSSavePanel savePanel];
-        savePanel.allowedFileTypes = @[@"png"];
-        [savePanel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger result) {
-            if (result) {
-                if ([imageData writeToURL:savePanel.URL atomically:YES]) {
-                    [[NSWorkspace sharedWorkspace] selectFile:savePanel.URL.path
-                                     inFileViewerRootedAtPath:@""];
-                }
-            }
-        }];
-    } else if (type == 1) {
-        NSData *data = image.TIFFRepresentation;
-        NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:data];
-        [imageRep setSize:image.size];
-        NSData *imageData = [imageRep representationUsingType:NSBitmapImageFileTypeJPEG properties:@{}];
-        
-        NSSavePanel *savePanel = [NSSavePanel savePanel];
-        savePanel.allowedFileTypes = @[@"jpg"];
-        [savePanel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger result) {
-            if (result) {
-                if ([imageData writeToURL:savePanel.URL atomically:YES]) {
-                    [[NSWorkspace sharedWorkspace] selectFile:savePanel.URL.path
-                                     inFileViewerRootedAtPath:@""];
-                }
-            }
-        }];
-    } else {
-        CPDFDocument *pdf = [[CPDFDocument alloc] init];
-        NSString *signatureImagePath =[[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@"signatureImage.png"];
-        NSData *data = image.TIFFRepresentation;
-        [data writeToURL:[NSURL fileURLWithPath:signatureImagePath] atomically:YES];
-        [pdf insertPage:image.size withImage:signatureImagePath atIndex:0];
-
-        NSSavePanel *savePanel = [NSSavePanel savePanel];
-        savePanel.allowedFileTypes = @[@"pdf"];
-        [savePanel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger result) {
-            if (result) {
-                if ([pdf writeToURL:savePanel.URL]) {
-                    [[NSWorkspace sharedWorkspace] selectFile:savePanel.URL.path
-                                     inFileViewerRootedAtPath:@""];
-                }
-            }
-        }];
-    }
-}
-
-- (void)deleteCustomizeStamp {
-    if (self.collectionView.selectionIndexes.count != 1) {
-        return;
-    }
-    
-    NSInteger index = 0;
-    for (NSIndexPath *indexPath in self.collectionView.selectionIndexPaths) {
-        index = indexPath.item;
-    }
-    NSInteger clickIndex = [self.signatures indexOfObject:self.clickSignature];
-    if(index < self.signatures.count) {
-        KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-        [signatureManager loadAllSignatureList];
-        [signatureManager removeObjectWithIndex:index];
-        [signatureManager saveSingaturesToFile];
-        [self reloadDataSignatures];
-    }
-    
-    if(clickIndex == index) {
-        [self.pdfView setAddStampObject:nil keepToolModel:false];
-    }
-}
-
-- (void)deleteAllCustomizeStamp {
-    NSAlert *alert = [[NSAlert alloc] init];
-    alert.messageText = NSLocalizedString(@"Are you sure to delete all signatures?", nil);
-    [alert addButtonWithTitle:NSLocalizedString(@"Delete", nil)];
-    [alert addButtonWithTitle:NSLocalizedString(@"Cancel", nil)];
-    if ([alert runModal] != NSAlertFirstButtonReturn) { /// 取消
-        return;
-    }
-    
-    KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-    [signatureManager loadAllSignatureList];
-    [signatureManager removeAllObject];
-    [signatureManager saveSingaturesToFile];
-    [self reloadDataSignatures];
-
-    [self.pdfView setAddStampObject:nil keepToolModel:NO];
-}
-
-#pragma mark - NSCollectionViewDelegate
-
-- (NSInteger)numberOfSectionsInCollectionView:(NSCollectionView *)collectionView {
-    return 1;
-}
-
-- (NSInteger)collectionView:(NSCollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
-    return self.signatures.count;
-
-}
-
-- (nonnull NSCollectionViewItem *)collectionView:(nonnull NSCollectionView *)collectionView itemForRepresentedObjectAtIndexPath:(nonnull NSIndexPath *)indexPath {
-    if (indexPath.item >= self.signatures.count) {
-        return nil;
-    }
-    KMSigntureViewItem *item = [collectionView makeItemWithIdentifier:@"kmSigntureViewItem" forIndexPath:indexPath];
-
-    KMSignature *signature = [self.signatures objectAtIndex:indexPath.item];
-    
-    item.iconImg.image = signature.pathsImage;
-    item.deleteIconBtn.tag = indexPath.item;
-    [item.deleteIconBtn setTarget:self];
-    [item.deleteIconBtn setAction:@selector(tableCellCloseButton_Click:)];
-    item.delegate = self;
-    item.itemIndex = indexPath.item;
-    item.isSelect = signature.isSelect;
-    
-    return item;
-}
-
-- (CGSize)collectionView:(NSCollectionView *)collectionView layout:(NSCollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
-    return CGSizeMake(228, 64);
-}
-
-- (NSEdgeInsets)collectionView:(NSCollectionView *)collectionView layout:(NSCollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
-    return NSEdgeInsetsMake(0, 16, 16, 16);
-}
-
-- (CGFloat)collectionView:(NSCollectionView *)collectionView layout:(NSCollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section {
-    return 16;
-}
-
-- (CGFloat)collectionView:(NSCollectionView *)collectionView layout:(NSCollectionViewLayout *)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
-    return 16;
-}
-
-- (void)collectionView:(NSCollectionView *)collectionView didSelectItemsAtIndexPaths:(NSSet<NSIndexPath *> *)indexPaths {
-    if (self.isClickSignatureList) {
-        NSInteger index = 0;
-        for (NSIndexPath *indexPath in self.collectionView.selectionIndexPaths) {
-            index = indexPath.item;
-        }
-        KMSignature *selectSignature = [self.signatures objectAtIndex:index];
-        
-        CPDFAnnotation *editAnnotation = (CPDFAnnotation *)self.annotationModel.annotations.firstObject;
-        CPDFPage *page = editAnnotation.page;
-        if ([editAnnotation isKindOfClass:[CPDFSignatureWidgetAnnotation class]]) {
-            CPDFSignatureWidgetAnnotation * signatureaAnnotation = nil;
-            if ([editAnnotation isKindOfClass:[CPDFSignatureWidgetAnnotation class]]) {
-                signatureaAnnotation = (CPDFSignatureWidgetAnnotation *)editAnnotation;
-            } else {
-                signatureaAnnotation = [[CPDFSignatureWidgetAnnotation alloc] initWithKMNoteBounds:editAnnotation.bounds document:self.pdfView.document];
-                signatureaAnnotation.fieldName = [(CPDFSignatureWidgetAnnotation *)editAnnotation fieldName];
-                signatureaAnnotation.backgroundColor = [(CPDFSignatureWidgetAnnotation *)editAnnotation backgroundColor];
-                signatureaAnnotation.contents = editAnnotation.contents;
-                signatureaAnnotation.userName = editAnnotation.userName;
-                signatureaAnnotation.modificationDate = editAnnotation.modificationDate;
-            }
-            
-            [signatureaAnnotation signWithImage:selectSignature.pathsImage];
-            
-            [page removeAnnotation:editAnnotation];
-            [page addAnnotation:signatureaAnnotation];
-            [self.pdfView setNeedsDisplayAnnotationViewForPage:page];
-            [signatureaAnnotation setShouldDisplay:YES];
-            
-            if (self.view.window != nil) {
-                [KMTools setDocumentEditedStateWithWindow:self.view.window];
-            }
-        }
-        
-        return;
-    }
-    
-    if (indexPaths.count == 1) {
-        NSInteger index = 0;
-        for (NSIndexPath *indexPath in self.collectionView.selectionIndexPaths) {
-            index = indexPath.item;
-        }
-        
-        for (KMSignature *signature in self.selectSignatures) {
-            signature.isSelect = NO;
-        }
-        [self.collectionView reloadData];
-        
-        if (index < self.signatures.count) {
-            [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"KMContinuousAdditionStamp"];
-
-            KMSignature *signature = [self.signatures objectAtIndex:index];
-            signature.isSelect = YES;
-            CStampSignatureObject *sigObject = [[CStampSignatureObject alloc] initWithSignatureImage:signature.pathsImage];
-            self.clickSignature = signature;
-            [self.pdfView setAddStampObject:sigObject keepToolModel:true];
-            [self.collectionView reloadItemsAtIndexPaths:self.collectionView.selectionIndexPaths];
-            [self.selectSignatures addObject:signature];
-        }
-    }
-    
-}
-
-#pragma mark -  KMSigntureViewItemDelegate
-- (void)kmSigntureViewItem:(KMSigntureViewItem *)item didClickMenuWithItem:(NSMenuItem *)menuItem {
-    [self.collectionView deselectAll:nil];
-    [self.collectionView selectItemsAtIndexPaths:[NSSet setWithObjects:[NSIndexPath indexPathForItem:item.itemIndex inSection:0],nil] scrollPosition:NSCollectionViewScrollPositionNone];
-    
-    [self exportCustomizeStamp:menuItem];
-}
-
-- (void)kmSigntureViewItemDidClickDeleteMenuItem:(KMSigntureViewItem *)item {
-    [self.collectionView deselectAll:nil];
-    [self.collectionView selectItemsAtIndexPaths:[NSSet setWithObjects:[NSIndexPath indexPathForItem:item.itemIndex inSection:0],nil] scrollPosition:NSCollectionViewScrollPositionNone];
-    
-    [self deleteCustomizeStamp];
-}
-
-- (void)kmSigntureViewItemDidClickAllDeleteMenuItem:(KMSigntureViewItem *)item {
-    [self.collectionView deselectAll:nil];
-    [self.collectionView selectItemsAtIndexPaths:[NSSet setWithObjects:[NSIndexPath indexPathForItem:item.itemIndex inSection:0],nil] scrollPosition:NSCollectionViewScrollPositionNone];
-    
-    [self deleteAllCustomizeStamp];
-}
-@end

+ 0 - 190
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureAnnotationViewController.xib

@@ -1,190 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMSignatureAnnotationViewController">
-            <connections>
-                <outlet property="addButton" destination="19B-9D-nhz" id="1BD-fv-Ssv"/>
-                <outlet property="collectionView" destination="czs-49-ygA" id="u73-ZB-6N0"/>
-                <outlet property="emptyBox" destination="ban-ci-oTA" id="WRU-LX-HMX"/>
-                <outlet property="emptyMinTipLabel" destination="vd7-mZ-jin" id="zNH-1P-a0Z"/>
-                <outlet property="emptyTipLabel" destination="Tbj-Oa-HOw" id="Pej-dH-skC"/>
-                <outlet property="signatureLabel" destination="2BZ-Qt-bmp" id="nPE-D6-BMO"/>
-                <outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <customView id="Hz6-mo-xeY">
-            <rect key="frame" x="0.0" y="0.0" width="227" height="415"/>
-            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-            <subviews>
-                <customView translatesAutoresizingMaskIntoConstraints="NO" id="nIu-Gf-7rk">
-                    <rect key="frame" x="0.0" y="0.0" width="227" height="415"/>
-                    <subviews>
-                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="LHW-Nt-uf2">
-                            <rect key="frame" x="0.0" y="365" width="227" height="50"/>
-                            <subviews>
-                                <button hidden="YES" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="KUF-xf-qzQ">
-                                    <rect key="frame" x="195" y="17" width="16" height="16"/>
-                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" image="signlist_add" imagePosition="only" alignment="center" imageScaling="proportionallyDown" inset="2" id="nVD-Gp-kLW">
-                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="height" constant="16" id="Po6-HM-leo"/>
-                                        <constraint firstAttribute="width" constant="16" id="mwE-re-iZv"/>
-                                    </constraints>
-                                    <connections>
-                                        <action selector="insertSignatureButton_Click:" target="-2" id="mFv-NR-mrz"/>
-                                    </connections>
-                                </button>
-                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="2BZ-Qt-bmp">
-                                    <rect key="frame" x="83" y="17" width="62" height="16"/>
-                                    <textFieldCell key="cell" lineBreakMode="clipping" title="Signature" id="d1y-xG-Jfy">
-                                        <font key="font" usesAppearanceFont="YES"/>
-                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="2BZ-Qt-bmp" firstAttribute="centerY" secondItem="LHW-Nt-uf2" secondAttribute="centerY" id="0wM-Ss-TLf"/>
-                                <constraint firstItem="2BZ-Qt-bmp" firstAttribute="centerX" secondItem="LHW-Nt-uf2" secondAttribute="centerX" id="ZSn-w9-kdP"/>
-                                <constraint firstItem="KUF-xf-qzQ" firstAttribute="centerY" secondItem="LHW-Nt-uf2" secondAttribute="centerY" id="g0U-Rq-gCw"/>
-                                <constraint firstAttribute="height" constant="50" id="qyo-8u-igd"/>
-                                <constraint firstAttribute="trailing" secondItem="KUF-xf-qzQ" secondAttribute="trailing" constant="16" id="ryG-zy-qMz"/>
-                            </constraints>
-                        </customView>
-                        <button imageHugsTitle="YES" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="19B-9D-nhz">
-                            <rect key="frame" x="16" y="10" width="195" height="32"/>
-                            <buttonCell key="cell" type="bevel" title="Button" bezelStyle="regularSquare" image="KMImageNameUXIconBtnAddWhite" imagePosition="left" alignment="center" state="on" imageScaling="proportionallyDown" inset="2" id="nhi-wF-TuK" customClass="KMButtomCell" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                <font key="font" metaFont="system"/>
-                            </buttonCell>
-                            <constraints>
-                                <constraint firstAttribute="height" constant="32" id="Pa2-PS-BpL"/>
-                            </constraints>
-                            <connections>
-                                <action selector="insertSignatureButton_Click:" target="-2" id="MUx-Ja-x2x"/>
-                            </connections>
-                        </button>
-                        <scrollView wantsLayer="YES" borderType="none" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p8T-K4-khD">
-                            <rect key="frame" x="0.0" y="62" width="227" height="303"/>
-                            <clipView key="contentView" id="dR7-DP-o8M">
-                                <rect key="frame" x="0.0" y="0.0" width="227" height="303"/>
-                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                <subviews>
-                                    <collectionView id="czs-49-ygA">
-                                        <rect key="frame" x="0.0" y="0.0" width="227" height="303"/>
-                                        <autoresizingMask key="autoresizingMask" widthSizable="YES"/>
-                                        <collectionViewFlowLayout key="collectionViewLayout" id="w8X-BA-czF">
-                                            <size key="itemSize" width="50" height="50"/>
-                                        </collectionViewFlowLayout>
-                                        <color key="primaryBackgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </collectionView>
-                                </subviews>
-                                <color key="backgroundColor" red="1" green="0.99843658089999998" blue="0.99619259260000004" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
-                            </clipView>
-                            <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="S8K-CG-jaw">
-                                <rect key="frame" x="-100" y="-100" width="233" height="15"/>
-                                <autoresizingMask key="autoresizingMask"/>
-                            </scroller>
-                            <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="kvH-mO-OTI">
-                                <rect key="frame" x="797" y="0.0" width="15" height="340"/>
-                                <autoresizingMask key="autoresizingMask"/>
-                            </scroller>
-                        </scrollView>
-                        <box borderType="none" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="ban-ci-oTA">
-                            <rect key="frame" x="0.0" y="40" width="227" height="375"/>
-                            <view key="contentView" id="dqW-kL-zjA">
-                                <rect key="frame" x="0.0" y="0.0" width="227" height="375"/>
-                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                <subviews>
-                                    <customView translatesAutoresizingMaskIntoConstraints="NO" id="7KQ-E7-UO5">
-                                        <rect key="frame" x="30" y="-45" width="168" height="220"/>
-                                        <subviews>
-                                            <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="ODp-k8-Vi6">
-                                                <rect key="frame" x="20" y="92" width="128" height="128"/>
-                                                <constraints>
-                                                    <constraint firstAttribute="width" constant="128" id="Otw-eg-ksB"/>
-                                                    <constraint firstAttribute="height" constant="128" id="vXx-j3-fAR"/>
-                                                </constraints>
-                                                <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="KMImageNameEmptySign" id="rfd-We-aPr"/>
-                                            </imageView>
-                                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Tbj-Oa-HOw">
-                                                <rect key="frame" x="39" y="68" width="90" height="16"/>
-                                                <textFieldCell key="cell" lineBreakMode="clipping" title="No Signatures" id="K2k-0V-W78">
-                                                    <font key="font" metaFont="system"/>
-                                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                    <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                </textFieldCell>
-                                            </textField>
-                                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="vd7-mZ-jin">
-                                                <rect key="frame" x="-2" y="18" width="172" height="48"/>
-                                                <constraints>
-                                                    <constraint firstAttribute="width" constant="168" id="WK4-mV-ZGn"/>
-                                                </constraints>
-                                                <textFieldCell key="cell" alignment="center" title="Click the Add button in the upper right corner to create a new signature." id="Efj-7i-gM3">
-                                                    <font key="font" metaFont="system"/>
-                                                    <color key="textColor" name="tertiaryLabelColor" catalog="System" colorSpace="catalog"/>
-                                                    <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                </textFieldCell>
-                                            </textField>
-                                        </subviews>
-                                        <constraints>
-                                            <constraint firstAttribute="height" constant="220" id="HGQ-9Z-mkz"/>
-                                            <constraint firstItem="vd7-mZ-jin" firstAttribute="top" secondItem="Tbj-Oa-HOw" secondAttribute="bottom" constant="2" id="RDC-7U-RBW"/>
-                                            <constraint firstItem="vd7-mZ-jin" firstAttribute="centerX" secondItem="7KQ-E7-UO5" secondAttribute="centerX" id="TXW-QZ-2YY"/>
-                                            <constraint firstItem="Tbj-Oa-HOw" firstAttribute="top" secondItem="ODp-k8-Vi6" secondAttribute="bottom" constant="8" id="XyN-Ku-JBT"/>
-                                            <constraint firstAttribute="width" constant="168" id="dky-LA-cA1"/>
-                                            <constraint firstItem="ODp-k8-Vi6" firstAttribute="top" secondItem="7KQ-E7-UO5" secondAttribute="top" id="gpm-TK-hgt"/>
-                                            <constraint firstItem="ODp-k8-Vi6" firstAttribute="centerX" secondItem="7KQ-E7-UO5" secondAttribute="centerX" id="rXz-DS-ZId"/>
-                                            <constraint firstItem="Tbj-Oa-HOw" firstAttribute="centerX" secondItem="7KQ-E7-UO5" secondAttribute="centerX" id="yhB-jO-JZd"/>
-                                        </constraints>
-                                    </customView>
-                                </subviews>
-                                <constraints>
-                                    <constraint firstItem="7KQ-E7-UO5" firstAttribute="centerX" secondItem="dqW-kL-zjA" secondAttribute="centerX" id="CJg-R7-ioD"/>
-                                    <constraint firstItem="7KQ-E7-UO5" firstAttribute="top" secondItem="dqW-kL-zjA" secondAttribute="top" constant="200" id="Lxn-Ax-fMH"/>
-                                </constraints>
-                            </view>
-                        </box>
-                    </subviews>
-                    <constraints>
-                        <constraint firstItem="ban-ci-oTA" firstAttribute="top" secondItem="nIu-Gf-7rk" secondAttribute="top" id="7GR-uq-tkc"/>
-                        <constraint firstItem="p8T-K4-khD" firstAttribute="leading" secondItem="nIu-Gf-7rk" secondAttribute="leading" id="7py-XU-MWT"/>
-                        <constraint firstAttribute="trailing" secondItem="p8T-K4-khD" secondAttribute="trailing" id="Ayf-bF-frh"/>
-                        <constraint firstAttribute="bottom" secondItem="19B-9D-nhz" secondAttribute="bottom" constant="10" id="Fw3-c3-PNZ"/>
-                        <constraint firstItem="LHW-Nt-uf2" firstAttribute="leading" secondItem="nIu-Gf-7rk" secondAttribute="leading" id="OPm-hq-IIz"/>
-                        <constraint firstItem="p8T-K4-khD" firstAttribute="top" secondItem="nIu-Gf-7rk" secondAttribute="top" constant="50" id="P4b-m6-dF9"/>
-                        <constraint firstItem="19B-9D-nhz" firstAttribute="top" secondItem="p8T-K4-khD" secondAttribute="bottom" constant="20" id="Qbo-Zd-Xuw"/>
-                        <constraint firstItem="19B-9D-nhz" firstAttribute="leading" secondItem="nIu-Gf-7rk" secondAttribute="leading" constant="16" id="Tf2-Yf-tT1"/>
-                        <constraint firstAttribute="trailing" secondItem="19B-9D-nhz" secondAttribute="trailing" constant="16" id="V5o-c2-m7L"/>
-                        <constraint firstAttribute="bottom" secondItem="ban-ci-oTA" secondAttribute="bottom" constant="40" id="Vu4-Ij-AvT"/>
-                        <constraint firstAttribute="trailing" secondItem="ban-ci-oTA" secondAttribute="trailing" id="Y2n-i3-mZK"/>
-                        <constraint firstItem="ban-ci-oTA" firstAttribute="leading" secondItem="nIu-Gf-7rk" secondAttribute="leading" id="cJ0-bF-OeV"/>
-                        <constraint firstItem="LHW-Nt-uf2" firstAttribute="top" secondItem="nIu-Gf-7rk" secondAttribute="top" id="x7S-m2-r07"/>
-                        <constraint firstAttribute="trailing" secondItem="LHW-Nt-uf2" secondAttribute="trailing" id="xGb-EZ-MfT"/>
-                    </constraints>
-                </customView>
-            </subviews>
-            <constraints>
-                <constraint firstItem="nIu-Gf-7rk" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" id="081-nP-gV4"/>
-                <constraint firstAttribute="bottom" secondItem="nIu-Gf-7rk" secondAttribute="bottom" id="PCM-OJ-jdJ"/>
-                <constraint firstItem="nIu-Gf-7rk" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" id="X5e-jj-dba"/>
-                <constraint firstAttribute="trailing" secondItem="nIu-Gf-7rk" secondAttribute="trailing" id="qJY-ts-WZZ"/>
-            </constraints>
-            <point key="canvasLocation" x="-44.5" y="171.5"/>
-        </customView>
-    </objects>
-    <resources>
-        <image name="KMImageNameEmptySign" width="140" height="140"/>
-        <image name="KMImageNameUXIconBtnAddWhite" width="16" height="16"/>
-        <image name="signlist_add" width="16" height="16"/>
-    </resources>
-</document>

+ 0 - 15
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureWindowController.h

@@ -1,15 +0,0 @@
-//
-//  KMSignatureWindowController.h
-//  PDF Reader Premium
-//
-//  Created by wangshuai on 14/12/3.
-//  Copyright (c) 2014年 zhangjie. All rights reserved.
-//
-
-#import <Cocoa/Cocoa.h>
-
-@interface KMSignatureWindowController : NSWindowController
-
-- (void)beginSheetModalForWindow:(NSWindow *)window completionHandler:(void (^)(id signature))handler;
-
-@end

+ 0 - 697
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureWindowController.m

@@ -1,697 +0,0 @@
-//
-//  KMSignatureWindowController.m
-//  PDF Reader Premium
-//
-//  Created by wangshuai on 14/12/3.
-//  Copyright (c) 2014年 zhangjie. All rights reserved.
-//
-
-#import "KMSignatureWindowController.h"
-#import "NSImage+PDFListView.h"
-#import "KMPurchaseCompareWindowController.h"
-#import "NSMenu_SKExtensions.h"
-
-#import <PDF_Reader_Pro-Swift.h>
-
-static NSMutableArray * recentlyFonts;
-
-#pragma mark KMSignatureColorButton
-@interface KMSignatureColorButton : NSButton
-
-@property (nonatomic, retain) NSColor *circleColor;
-@property (nonatomic, retain) NSImage *drawImage;
-
-@end
-
-@implementation KMSignatureColorButton
-
-- (void)dealloc {
-   
-}
-
-//- (void)setCircleColor:(NSColor *)circleColor {
-//    if (_circleColor != circleColor) {
-//        _circleColor  = circleColor;
-//    }
-//    [self setNeedsDisplay:YES];
-//}
-
-- (id)initWithCoder:(NSCoder *)coder {
-    self = [super initWithCoder:coder];
-    if (self) {
-        self.wantsLayer = YES;
-        self.layer.cornerRadius = 12;
-        self.layer.masksToBounds = YES;
-        self.layer.borderWidth = 1.5;
-    }
-    return self;
-}
-
-- (void)drawRect:(NSRect)rect {
-    [super drawRect:rect];
-    if (_circleColor) {
-        NSBezierPath *path3 = [NSBezierPath bezierPathWithOvalInRect:NSMakeRect(3, 3, rect.size.width - 6,  rect.size.height - 6)];
-        [self.circleColor set];
-        [path3 fill];
-    } else if (self.drawImage) {
-        [self.drawImage drawInRect:CGRectMake(3,3,rect.size.width -6,rect.size.height - 6)
-                         fromRect:NSZeroRect
-                         operation:NSCompositingOperationSourceOver
-                          fraction:1.0];
-    }
-}
-
-@end
-
-
-#pragma mark KMSignatureButton
-@interface KMSignatureButton : NSButton
-
-@end
-
-@implementation KMSignatureButton
-
-- (NSMenu *)menuForEvent:(NSEvent *)theEvent {
-    NSMenu *menu = [[NSMenu alloc] initWithTitle:@""];
-    NSMenuItem *item = [menu addItemWithTitle:NSLocalizedString(@"Delete", nil) action:@selector(delete) keyEquivalent:@""];
-    item.target = self;
-    
-    item = [menu addItemWithTitle:NSLocalizedString(@"Export", @"Menu item title") action:nil keyEquivalent:@""];
-    
-    NSMenu * tSubMenu = [NSMenu menu];
-    
-    NSMenuItem *tMenuItem = [tSubMenu insertItemWithTitle:NSLocalizedString(@"PNG", @"Menu item title") action:@selector(export:) target:self atIndex:0];
-    tMenuItem.tag = 0;
-    
-    tMenuItem = [tSubMenu insertItemWithTitle:NSLocalizedString(@"JPG", @"Menu item title") action:@selector(export:) target:self atIndex:1];
-    tMenuItem.tag = 1;
-
-    tMenuItem = [tSubMenu insertItemWithTitle:NSLocalizedString(@"PDF", @"Menu item title") action:@selector(export:) target:self atIndex:2];
-    tMenuItem.tag = 2;
-    
-    item.submenu = tSubMenu;
-    
-    return menu;
-}
-
-- (void)delete {
-    [[NSNotificationCenter defaultCenter] postNotificationName:@"kKMSignatureDeleteNotification" object:[NSNumber numberWithInteger:self.tag]];
-}
-
-- (void)export:(NSMenuItem *)sender {
-    NSInteger index = self.tag;
-    NSInteger type = sender.tag;
-    
-    KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-    [signatureManager loadAllSignatureList];
-    KMSignature *signature = signatureManager.signatureList[index];
-    NSImage *image = signature.pathsImage;
-    
-    if (type == 0) {
-        NSData *data = image.TIFFRepresentation;
-        NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:data];
-        [imageRep setSize:image.size];
-        NSData *imageData = [imageRep representationUsingType:NSBitmapImageFileTypePNG properties:@{}];
-        
-        NSSavePanel *savePanel = [NSSavePanel savePanel];
-        savePanel.allowedFileTypes = @[@"png"];
-        [savePanel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result) {
-            if (result) {
-                if ([imageData writeToURL:savePanel.URL atomically:YES]) {
-                    [[NSWorkspace sharedWorkspace] selectFile:savePanel.URL.path
-                                     inFileViewerRootedAtPath:@""];
-                }
-            }
-        }];
-    } else if (type == 1) {
-        NSData *data = image.TIFFRepresentation;
-        NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:data];
-        [imageRep setSize:image.size];
-        NSData *imageData = [imageRep representationUsingType:NSBitmapImageFileTypeJPEG properties:@{}];
-        
-        NSSavePanel *savePanel = [NSSavePanel savePanel];
-        savePanel.allowedFileTypes = @[@"jpg"];
-        [savePanel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result) {
-            if (result) {
-                if ([imageData writeToURL:savePanel.URL atomically:YES]) {
-                    [[NSWorkspace sharedWorkspace] selectFile:savePanel.URL.path
-                                     inFileViewerRootedAtPath:@""];
-                }
-            }
-        }];
-    } else {
-        PDFDocument *pdf = [[PDFDocument alloc] init];
-        PDFPage *page = [[PDFPage alloc] initWithImage:image];
-        [pdf insertPage:page atIndex:pdf.pageCount];
-        
-        NSSavePanel *savePanel = [NSSavePanel savePanel];
-        savePanel.allowedFileTypes = @[@"pdf"];
-        [savePanel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger result) {
-            if (result) {
-                if ([pdf writeToURL:savePanel.URL]) {
-                    [[NSWorkspace sharedWorkspace] selectFile:savePanel.URL.path
-                                     inFileViewerRootedAtPath:@""];
-                }
-            }
-        }];
-    }
-}
-
-@end
-
-#pragma mark KMSignatureWindowController
-@interface KMSignatureWindowController () <NSTabViewDelegate,KMDrawViewSignatureDelegate,KMChangeSignatureTextDelegate>
-
-@property (nonatomic) IBOutlet NSTabView   *creatTabview;
-
-@property (nonatomic) IBOutlet NSButton    *cancelBtton;
-@property (nonatomic) IBOutlet NSButton    *applyButton;
-@property (nonatomic) IBOutlet NSButton    *clearButton;
-
-@property (nonatomic) IBOutlet KMTextSignatureView *keyboardView;
-@property (nonatomic) IBOutlet NSPopUpButton *fontBox;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *textBlackColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *textBlueColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *textPurpleColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *textGreenColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *textOrangeColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *textRedColorButton;
-@property (nonatomic,assign) IBOutlet KMSignatureColorButton *textColorButton;
-
-@property (nonatomic) IBOutlet KMDrawSignatureView  *drawView;
-@property (nonatomic) IBOutlet NSButton    *trackpadButton;
-@property (assign) IBOutlet NSSlider *slider;
-
-@property (nonatomic) IBOutlet KMSignatureColorButton    *mouseBlackColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *mouseBlueColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *mousePurpleColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *mouseGreenColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *mouseOrangeColorButton;
-@property (nonatomic) IBOutlet KMSignatureColorButton    *mouseRedColorButton;
-@property (nonatomic, assign) IBOutlet KMSignatureColorButton *mouseColorButton;
-
-@property (nonatomic) IBOutlet KMPDFSignatureImageView *pictureBackView;
-
-@property (nonatomic) IBOutlet NSTextField *trackpadLabel;
-@property (assign) IBOutlet NSTextField *widthSizeTextField;
-
-@property (nonatomic, retain) KMSignature   *selectedSignature;
-@property (nonatomic, retain) NSMenuItem *selectItem;
-@property (nonatomic, assign) KMPDFSignatureType   type;
-
-@end
-
-@implementation KMSignatureWindowController
-
-- (id)init {
-    if (self = [super initWithWindowNibName:@"KMSignatureWindowController"]) {
-
-    }
-    return self;
-}
-
-- (void)dealloc {
-    _creatTabview.delegate = nil;
-    _drawView.delegate = nil;
-    _keyboardView.delegate = nil;
-    [[NSNotificationCenter defaultCenter] removeObserver:self];
-    [NSDistributedNotificationCenter.defaultCenter removeObserver:self];
-    [[NSColorPanel sharedColorPanel] setTarget:nil];
-    [[NSColorPanel sharedColorPanel] setAction:nil];
-}
-
-#pragma mark - View Methods
-
-- (void)windowDidLoad {
-    [super windowDidLoad];
-    
-    self.type = KMPDFSignatureTypeText;
-    
-    self.textBlackColorButton.circleColor = self.mouseBlackColorButton.circleColor = [NSColor blackColor];
-    
-    self.textRedColorButton.circleColor =
-    self.mouseRedColorButton.circleColor = [NSColor colorWithRed:221.0f/255.0f green:2.0f/255.0f blue:2.0f/255.0f alpha:1.0f];
-    
-    self.textBlueColorButton.circleColor =
-    self.mouseBlueColorButton.circleColor  = [NSColor colorWithRed:0.0 green:52.0/255.0 blue:146.0/255.0 alpha:1.0];
-    
-    self.textGreenColorButton.circleColor =
-    self.mouseGreenColorButton.circleColor = [NSColor colorWithRed:39.0f/255.0f green:190.0f/255.0f blue:253.0f/255.0f alpha:1.0f];
-    
-    self.textOrangeColorButton.circleColor =
-    self.mouseOrangeColorButton.circleColor = [NSColor colorWithRed:253.0f/255.0f green:126.0f/255.0f blue:21.0f/255.0f alpha:1.0f];
-    
-    self.textPurpleColorButton.circleColor =
-    self.mousePurpleColorButton.circleColor = [NSColor colorWithRed:100.0/255.0 green:13.0/255.0 blue:168.0/255.0 alpha:1.0];
-    
-    self.textColorButton.drawImage = self.mouseColorButton.drawImage = [NSImage imageNamed:@"view_color"];
-    
-    self.widthSizeTextField.backgroundColor = [KMAppearance KMColor_Layout_L1];
-    self.widthSizeTextField.wantsLayer = YES;
-    self.widthSizeTextField.layer.borderWidth = 0;
-    
-    [self localizedString];
-    
-    [self.cancelBtton setTarget:self];
-    [self.cancelBtton setAction:@selector(dismissSheet:)];
-    
-    [self.clearButton setTarget:self];
-    [self.clearButton setAction:@selector(clearButton_Click:)];
-    
-    self.applyButton.enabled = NO;
-    [self.applyButton setTarget:self];
-    [self.applyButton setAction:@selector(applyButton_Click:)];
-    
-    self.keyboardView.wantsLayer = YES;
-    
-    self.drawView.delegate = self;
-    self.drawView.wantsLayer = YES;
-    self.drawView.layer.masksToBounds = YES;
-    
-    self.pictureBackView.wantsLayer = YES;
-    
-    [self.creatTabview selectFirstTabViewItem:nil];
-    
-    [self.trackpadLabel setHidden:YES];
-    
-    _slider.floatValue = self.drawView.strokeRadius;
-    _widthSizeTextField.stringValue = [NSString stringWithFormat:@"%.1f",self.drawView.strokeRadius];
-    
-    __block typeof(self) blockSelf = self;
-    self.keyboardView.delegate = self;
-    self.drawView.changeDrawCallback = ^(BOOL isTure) {
-        if (isTure) {
-            blockSelf.applyButton.enabled = YES;
-        } else {
-            blockSelf.applyButton.enabled = NO;
-        }
-    };
-    self.pictureBackView.changeSignatureImageCallback = ^(BOOL isTure) {
-        if (isTure) {
-            blockSelf.applyButton.enabled = YES;
-        } else {
-            blockSelf.applyButton.enabled = NO;
-        }
-    };
-    
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(widthSizeTextFieldNotification:) name:NSControlTextDidChangeNotification object:_widthSizeTextField];
-    [NSDistributedNotificationCenter.defaultCenter addObserver:self selector:@selector(themeChanged:) name:@"AppleInterfaceThemeChangedNotification" object: nil];
-    
-    [self updateViewColor];
-}
-
-#pragma mark - Private Methods
-
-- (void)localizedString {
-    self.creatTabview.delegate = self;
-    
-    [self.trackpadButton setTitle:NSLocalizedString(@"Trackpad", nil)];
-    [self.cancelBtton setTitle:NSLocalizedString(@"Cancel",nil)];
-    [self.applyButton setTitle:NSLocalizedString(@"Save", nil)];
-    [self.clearButton setTitle:NSLocalizedString(@"Clear", nil)];
-    [self.trackpadLabel setStringValue:NSLocalizedString(@"Press \"esc\" to disable the Trackpad.", nil)];
-    
-    NSArray *seletorFonts = @[@"Mistral", @"Bradley Hand", @"Brush Script MT", @"SignPainter", @"Edwardian Script ITC", @"American Typewriter",@"Baoli SC",@"Snell Roundhand", @"Apple Chancery", @"Monotype Corsiva"];
-    
-    NSArray *fonts = [[NSFontManager sharedFontManager] availableFontFamilies];
-    for (NSString *fontName in fonts) {
-        NSDictionary *attrited = @{NSFontAttributeName:[NSFont fontWithName:fontName size:12.0]};
-        NSAttributedString *string = [[NSAttributedString alloc] initWithString:fontName attributes:attrited];
-        NSMenuItem *item = [[NSMenuItem alloc] init];
-        item.attributedTitle = string;
-        [self.fontBox.menu addItem:item];
-    }
-    
-    NSString * fontName = nil;
-    
-    if (!recentlyFonts) {
-        recentlyFonts = [[NSMutableArray alloc] init];
-    }
-    if (recentlyFonts.count < 1) {
-        for (NSString *name in seletorFonts) {
-            if ([fonts containsObject:name]) {
-                fontName = name;
-                break;
-            }
-        }
-        if (fontName) {
-            [recentlyFonts addObject:fontName];
-        }
-    } else {
-        fontName = recentlyFonts.firstObject;
-    }
-    
-    if ([fonts containsObject:fontName]) {
-        self.keyboardView.fontName = fontName;
-        [self.fontBox setTitle:fontName];
-    } else {
-        self.keyboardView.fontName = fonts.firstObject;
-        [self.fontBox setTitle:fonts.firstObject];
-    }
-    
-    for (NSUInteger i = 0; i<recentlyFonts.count; i++) {
-        NSString *fontName  = recentlyFonts[i];
-        NSDictionary *attrited = @{NSFontAttributeName:[NSFont fontWithName:fontName size:12.0]};
-        NSAttributedString *string = [[NSAttributedString alloc] initWithString:fontName attributes:attrited];
-        NSMenuItem *item = [[NSMenuItem alloc] init];
-        item.attributedTitle = string;
-        [self.fontBox.menu insertItem:item atIndex:1 + i];
-    }
-    NSMenuItem *sep = [NSMenuItem separatorItem];
-    [self.fontBox.menu  insertItem:sep atIndex:(recentlyFonts.count)+1];
-    
-    self.selectItem=  [self.fontBox.menu itemAtIndex:1];
-    self.selectItem.state = NSControlStateValueOn;
-        
-    [[self.creatTabview tabViewItemAtIndex:0] setLabel:NSLocalizedString(@"Keyboard", nil)];
-    [[self.creatTabview tabViewItemAtIndex:1] setLabel:NSLocalizedString(@"Trackpad", nil)];
-    [[self.creatTabview tabViewItemAtIndex:2] setLabel:NSLocalizedString(@"Image", nil)];
-    
-    [self colorInkButtonAction:self.mouseBlackColorButton];
-    [self colorTextButtonAction:self.textBlackColorButton];
-}
-
-- (void)updateViewColor {
-    if ([KMAppearance isDarkMode]) {
-        self.keyboardView.layer.backgroundColor = [NSColor colorWithRed:57/255. green:60/255. blue:62/255. alpha:1.].CGColor;
-        self.drawView.layer.backgroundColor = [NSColor colorWithRed:57/255. green:60/255. blue:62/255. alpha:1.].CGColor;
-        self.pictureBackView.layer.backgroundColor = [NSColor colorWithRed:57/255. green:60/255. blue:62/255. alpha:1.].CGColor;
-        
-    } else {
-        self.keyboardView.layer.backgroundColor = [NSColor whiteColor].CGColor;
-        self.drawView.layer.backgroundColor = [NSColor whiteColor].CGColor;
-        self.pictureBackView.layer.backgroundColor = [NSColor whiteColor].CGColor;
-        
-    }
-}
-
-#pragma mark - Button Mehtods
-
-- (void)clearButton_Click:(id)sender {
-//    if (KMPDFSignatureTypeImage == self.type) {
-//        [self.pictureBackView clearImage];
-//    } else if (KMPDFSignatureTypeInk == self.type) {
-//        [self.drawView clearImage];
-//    } else if (KMPDFSignatureTypeText == self.type) {
-//        [self.keyboardView clearImage];
-//    }
-    
-    self.applyButton.enabled = NO;
-}
-
-- (NSImage*)changeColor:(NSColor*)color oldImage:(NSImage *)oldImage {
-
-    NSImage *newImage = [oldImage copy];
-
-    [newImage lockFocus];
-
-    [color set];
-
-    NSRect imageRect=NSMakeRect(0, 0, oldImage.size.width, oldImage.size.height);
-
-    NSRectFillUsingOperation(imageRect, NSCompositingOperationSourceAtop);
-
-    [newImage unlockFocus];
-
-    return newImage;
-}
-
-- (void)applyButton_Click:(id)sender {
-    KMSignature *signature = [[KMSignature alloc] init];
-
-    if (KMPDFSignatureTypeText == self.type) {
-        NSImage *image = [self.keyboardView signatureImage];
-        
-        if (!image) {
-            NSAlert *alert = [[NSAlert alloc] init];
-            [alert setAlertStyle:NSAlertStyleCritical];
-            [alert setMessageText:NSLocalizedString(@"Unable to add new signatures. Please try again.",nil)];
-            [alert runModal];
-            return;
-        }
-        
-        signature.pathsImage = image;
-        signature.signatureType = KMPDFSignatureTypeText;
-        KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-        [signatureManager loadAllSignatureList];
-        [signatureManager addSignature:signature];
-        [signatureManager saveSingaturesToFile];
-    } else if(KMPDFSignatureTypeImage == self.type) {
-        NSImage *image = [self.pictureBackView signatureImage];
-        
-        if (!image) {
-            NSAlert *alert = [[NSAlert alloc] init];
-            [alert setAlertStyle:NSAlertStyleCritical];
-            [alert setMessageText:NSLocalizedString(@"Unable to add new signatures. Please try again.",nil)];
-            [alert runModal];
-            return;
-        }
-        
-        signature.pathsImage = image;
-        signature.signatureType = KMPDFSignatureTypeImage;
-
-        KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-        [signatureManager loadAllSignatureList];
-        [signatureManager addSignature:signature];
-        [signatureManager saveSingaturesToFile];
-    } else {
-        NSImage *image = [self.drawView signatureImage];
-        
-        if (!image) {
-            NSAlert *alert = [[NSAlert alloc] init];
-            [alert setAlertStyle:NSAlertStyleCritical];
-            [alert setMessageText:NSLocalizedString(@"Unable to add new signatures. Please try again.",nil)];
-            [alert runModal];
-            return;
-        }
-        
-        [signature addPath:self.drawView.drawBezierPath];
-        signature.signatureType = KMPDFSignatureTypeInk;
-        signature.signatureColor = self.drawView.drawColor;
-        signature.pathsImage = image;
-        KMSignatureManager *signatureManager = [[KMSignatureManager alloc] init];
-        [signatureManager loadAllSignatureList];
-        [signatureManager addSignature:signature];
-        [signatureManager saveSingaturesToFile];
-    }
-    self.selectedSignature = signature;
-    [self dismissSheet:nil];
-}
-
-- (IBAction)trackpadButton_Click:(id)sender {
-    if (self.trackpadButton.cell.state) {
-        [self.trackpadLabel setHidden:NO];
-        self.drawView.isAcceptsTouch = YES;
-    } else {
-        [self.trackpadLabel setHidden:YES];
-        self.drawView.isAcceptsTouch = NO;
-    }
-}
-
-- (IBAction)boxItemClicked_Font:(id)sender {
-    NSString * name = self.fontBox.selectedItem.title;
-    self.fontBox.title = name;
-    self.keyboardView.fontName = name;
-
-    if ([recentlyFonts containsObject:name]) {
-        NSInteger index = [recentlyFonts indexOfObject:name];
-        [recentlyFonts removeObject:name];
-        [self.fontBox.menu removeItemAtIndex:index +1];
-        
-    }
-    if (recentlyFonts.count >0) {
-        [recentlyFonts insertObject:name atIndex:0];
-    } else {
-        [recentlyFonts addObject:name];
-    }
-
-    if (recentlyFonts.count >5) {
-        [recentlyFonts removeLastObject];
-        [self.fontBox.menu removeItemAtIndex:recentlyFonts.count];
-    }
-
-    NSDictionary *attrited = @{NSFontAttributeName:[NSFont fontWithName:name size:12.0]};
-    NSAttributedString *string = [[NSAttributedString alloc] initWithString:name attributes:attrited];
-    NSMenuItem *item = [[NSMenuItem alloc] init];
-    item.attributedTitle = string;
-    [self.fontBox.menu  insertItem:item atIndex:1];
-    
-    self.selectItem.state = NSControlStateValueOff;
-    self.selectItem =  [self.fontBox.menu itemAtIndex:1];
-    self.selectItem.state = NSControlStateValueOn;
-}
-
-- (IBAction)slider_Change:(id)sender {
-    self.drawView.strokeRadius = self.slider.floatValue;
-    
-    _widthSizeTextField.stringValue = [NSString stringWithFormat:@"%.1f",self.slider.floatValue];
-}
-
-- (IBAction)colorTextButtonAction:(KMSignatureColorButton *)sender {
-    if (sender.tag != 6) {
-        self.textBlackColorButton.layer.borderColor =
-        self.textRedColorButton.layer.borderColor =
-        self.textBlueColorButton.layer.borderColor =
-        self.textGreenColorButton.layer.borderColor =
-        self.textOrangeColorButton.layer.borderColor =
-        self.textPurpleColorButton.layer.borderColor  =
-        self.textColorButton.layer.borderColor= [NSColor clearColor].CGColor;
-        self.keyboardView.keyboardColor = sender.circleColor;
-        sender.layer.borderColor = [KMAppearance KMColor_Interactive_A0].CGColor;
-    } else {
-        [[NSColorPanel sharedColorPanel] setTarget:self];
-        [[NSColorPanel sharedColorPanel] setAction:@selector(keyboardColorPanelColorDidChange:)];
-        [[NSColorPanel sharedColorPanel] orderFront:nil];
-    }
-}
-
-- (IBAction)colorInkButtonAction:(KMSignatureColorButton *)sender {
-    if (sender.tag != 6) {
-        self.mouseBlackColorButton.layer.borderColor =
-        self.mouseRedColorButton.layer.borderColor =
-        self.mouseBlueColorButton.layer.borderColor =
-        self.mouseGreenColorButton.layer.borderColor =
-        self.mouseOrangeColorButton.layer.borderColor =
-        self.mousePurpleColorButton.layer.borderColor =
-        self.mouseColorButton.layer.borderColor = [NSColor clearColor].CGColor;
-        
-        sender.layer.borderColor = [KMAppearance KMColor_Interactive_A0].CGColor;
-        self.drawView.drawColor = sender.circleColor;
-    } else {
-        [[NSColorPanel sharedColorPanel] setTarget:self];
-        [[NSColorPanel sharedColorPanel] setAction:@selector(ColorPanelColorDidChange:)];
-        [[NSColorPanel sharedColorPanel] orderFront:nil];
-    }
-}
-
-- (void)ColorPanelColorDidChange:(id)sender {
-    self.mouseBlackColorButton.layer.borderColor =
-    self.mouseRedColorButton.layer.borderColor =
-    self.mouseBlueColorButton.layer.borderColor =
-    self.mouseGreenColorButton.layer.borderColor =
-    self.mouseOrangeColorButton.layer.borderColor =
-    self.mousePurpleColorButton.layer.borderColor =
-    self.mouseColorButton.layer.borderColor = [NSColor clearColor].CGColor;
-    
-    CGFloat red,green,blue,alpha;
-    NSColor *color = [(NSColorPanel*)sender color];
-    [[color colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&red green:&green blue:&blue alpha:&alpha];
-    self.drawView.drawColor = color;
-    self.mouseColorButton.layer.borderColor = [NSColor colorWithRed:33.0/255.0 green:124.0/255.0 blue:234.0/255.0 alpha:1.0].CGColor;
-}
-
-- (void)keyboardColorPanelColorDidChange:(id)sender {
-    self.textBlackColorButton.layer.borderColor =
-    self.textRedColorButton.layer.borderColor =
-    self.textBlueColorButton.layer.borderColor =
-    self.textGreenColorButton.layer.borderColor =
-    self.textOrangeColorButton.layer.borderColor =
-    self.textPurpleColorButton.layer.borderColor  =
-    self.textColorButton.layer.borderColor= [NSColor clearColor].CGColor;
-    
-    CGFloat red,green,blue,alpha;
-    NSColor *color = [NSColorPanel sharedColorPanel].color ? : [NSColor clearColor];
-    [[color colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&red green:&green blue:&blue alpha:&alpha];
-    self.keyboardView.keyboardColor = color;
-    self.textColorButton.layer.borderColor = [NSColor colorWithRed:33.0/255.0 green:124.0/255.0 blue:234.0/255.0 alpha:1.0].CGColor;
-}
-
-#pragma mark - KMDrawSignatureViewDelegate Methods
-
-- (void)drawViewDidFinishTouchMode:(KMDrawSignatureView *)view {
-    [self.trackpadButton.cell setState:0];
-    [self.trackpadLabel setHidden:YES];
-}
-
-#pragma mark KMChangeSignatureTextDelegate Methods
-
-- (void)changeSignatureText:(BOOL)isTure {
-    self.applyButton.enabled = isTure;
-}
-
-#pragma mark - show Methods
-- (void)didEndSheet:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo {
-    if (contextInfo != NULL) {
-        void (^handler)(KMSignature*) = (__bridge void(^)(KMSignature*))contextInfo;
-        if (handler) {
-            handler(self.selectedSignature);
-            handler = nil;
-        }
-    }
-}
-
-- (void)beginSheetModalForWindow:(NSWindow *)window completionHandler:(void (^)(KMSignature *signature))handler; {
-   
-    [NSApp beginSheet:[self window]
-       modalForWindow:window
-        modalDelegate:self
-       didEndSelector:@selector(didEndSheet:returnCode:contextInfo:)
-          contextInfo:(__bridge void * _Null_unspecified)(handler ? handler : NULL)];
-}
-
-- (void)dismissSheet:(id)sender {
-    if (sender) {
-        [NSApp endSheet:[self window] returnCode:0];
-    } else {
-        [NSApp endSheet:[self window] returnCode:1];
-    }
-    [[self window] orderOut:self];
-}
-
-#pragma mark - NSTabViewDelegate Methods
-
-- (BOOL)tabView:(NSTabView *)tabView shouldSelectTabViewItem:(nullable NSTabViewItem *)tabViewItem {
-    return YES;
-}
-
-- (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem {
-    BOOL isImage = NO;
-    if ([tabView indexOfTabViewItem:tabViewItem] == 0) {
-        self.type = KMPDFSignatureTypeText;
-        if ([self.keyboardView signatureImage]) {
-            isImage = YES;
-        }
-    } else if ([tabView indexOfTabViewItem:tabViewItem] == 1) {
-        self.type = KMPDFSignatureTypeInk;
-        if ([self.drawView signatureImage]) {
-            isImage = YES;
-        }
-    } else if ([tabView indexOfTabViewItem:tabViewItem] == 2) {
-        self.type = KMPDFSignatureTypeImage;
-        if ([self.pictureBackView signatureImage]) {
-            isImage = YES;
-        }
-    }
-    
-    if (isImage) {
-        self.applyButton.enabled = YES;
-    } else {
-        self.applyButton.enabled = NO;
-    }
-}
-
-#pragma mark - NSNotification
-
-- (void)widthSizeTextFieldNotification:(NSNotification *)notification {
-    NSTextView *field = (NSTextView *)notification.object;
-    
-    if ([field isEqual:_widthSizeTextField]) {
-        CGFloat widthSize = [_widthSizeTextField.stringValue floatValue];
-        if (widthSize < 0.1) {
-            _widthSizeTextField.stringValue = @"0.1";
-            _drawView.strokeRadius = _slider.floatValue = 0.1;
-        } else if (widthSize > 4) {
-            _widthSizeTextField.stringValue = @"4.0";
-            _drawView.strokeRadius = _slider.floatValue = 4.0;
-        } else {
-            _drawView.strokeRadius = _slider.floatValue = widthSize;
-        }
-    }
-}
-
-- (void)themeChanged:(NSNotification *)notification {
-    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
-        [self updateViewColor];
-    });
-}
-@end

+ 0 - 720
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSignatureWindowController.xib

@@ -1,720 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
-        <capability name="Named colors" minToolsVersion="9.0"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMSignatureWindowController" customModule="PDF_Reader_Pro" customModuleProvider="target">
-            <connections>
-                <outlet property="applyButton" destination="j7L-83-3Ut" id="p88-8o-mie"/>
-                <outlet property="cancelBtton" destination="s0y-mf-WpS" id="3yc-1u-IcY"/>
-                <outlet property="clearButton" destination="9qj-7Y-28D" id="eST-zI-M3J"/>
-                <outlet property="creatTabview" destination="cnS-vP-U1z" id="Pgj-5R-fiI"/>
-                <outlet property="drawView" destination="YpY-Ar-kl8" id="Mhg-Di-GlR"/>
-                <outlet property="fontBox" destination="xZO-qY-11k" id="cgR-co-aot"/>
-                <outlet property="keyboardView" destination="kMz-wA-UvW" id="UF6-Ec-skW"/>
-                <outlet property="mouseBlackColorButton" destination="hmB-iA-f1I" id="i0i-OS-e22"/>
-                <outlet property="mouseBlueColorButton" destination="wUy-ZZ-NV6" id="8au-dr-VRe"/>
-                <outlet property="mouseColorButton" destination="pdk-Nk-qtg" id="KI1-vc-xeP"/>
-                <outlet property="mouseGreenColorButton" destination="g94-8v-Pzp" id="IQa-RU-Sw2"/>
-                <outlet property="mouseOrangeColorButton" destination="cVn-Dj-7k0" id="LBI-Dr-dxO"/>
-                <outlet property="mousePurpleColorButton" destination="W3o-fN-rOw" id="FI6-9h-wiS"/>
-                <outlet property="mouseRedColorButton" destination="5Ho-ZM-JxE" id="6xF-Gh-U8b"/>
-                <outlet property="pictureBackView" destination="mpG-Sx-Pe8" id="hQ7-7D-LSZ"/>
-                <outlet property="slider" destination="6qL-r4-WZt" id="Mvp-dA-hPP"/>
-                <outlet property="textBlackColorButton" destination="dSP-K5-TWG" id="kVf-8P-4kA"/>
-                <outlet property="textBlueColorButton" destination="SJT-jB-SRM" id="LOW-kC-5Eo"/>
-                <outlet property="textColorButton" destination="vMd-TE-sxe" id="pmh-jG-TBh"/>
-                <outlet property="textGreenColorButton" destination="g0a-Fj-PUV" id="j4d-B0-agn"/>
-                <outlet property="textOrangeColorButton" destination="SWP-Bp-BEe" id="5FQ-HH-sLa"/>
-                <outlet property="textPurpleColorButton" destination="kaa-TU-cyJ" id="bdb-aH-tRO"/>
-                <outlet property="textRedColorButton" destination="yfE-5n-2V6" id="RXF-df-48q"/>
-                <outlet property="trackpadButton" destination="hTk-co-rOw" id="eoO-vW-W79"/>
-                <outlet property="trackpadLabel" destination="8sI-6n-jcW" id="ob5-jf-lbE"/>
-                <outlet property="widthSizeTextField" destination="PHX-fM-ig4" id="qDC-vm-3Vb"/>
-                <outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="F0z-JX-Cv5">
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
-            <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
-            <rect key="contentRect" x="196" y="240" width="590" height="400"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
-            <view key="contentView" id="se5-gp-TjO">
-                <rect key="frame" x="0.0" y="0.0" width="590" height="400"/>
-                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                <subviews>
-                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="j7L-83-3Ut">
-                        <rect key="frame" x="507" y="11" width="76" height="32"/>
-                        <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="YKQ-wq-7Ov">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                            <string key="keyEquivalent" base64-UTF8="YES">
-Gw
-</string>
-                        </buttonCell>
-                    </button>
-                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9qj-7Y-28D">
-                        <rect key="frame" x="7" y="11" width="66" height="32"/>
-                        <buttonCell key="cell" type="push" title="Clear" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Slu-mR-UaT">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                    </button>
-                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="s0y-mf-WpS">
-                        <rect key="frame" x="437" y="11" width="76" height="32"/>
-                        <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="76r-wf-8NT">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                            <string key="keyEquivalent" base64-UTF8="YES">
-Gw
-</string>
-                        </buttonCell>
-                    </button>
-                    <tabView translatesAutoresizingMaskIntoConstraints="NO" id="cnS-vP-U1z">
-                        <rect key="frame" x="7" y="49" width="576" height="336"/>
-                        <font key="font" metaFont="system"/>
-                        <tabViewItems>
-                            <tabViewItem label="Keyboard" identifier="1" id="nI2-NR-urf">
-                                <view key="view" id="ja1-TS-BoL">
-                                    <rect key="frame" x="10" y="33" width="556" height="290"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <subviews>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="kMz-wA-UvW" customClass="KMTextSignatureView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                            <rect key="frame" x="20" y="76" width="516" height="193"/>
-                                            <subviews>
-                                                <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Prg-wG-qeL" customClass="KMSignayureTextField" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                                    <rect key="frame" x="206" y="88" width="104" height="17"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="100" id="SSc-8L-f4d"/>
-                                                    </constraints>
-                                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" focusRingType="none" alignment="center" placeholderString="Sign Here" id="dJl-vL-OFS" customClass="KMVerticallyCenteredSecureTextFieldCell" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                                        <font key="font" metaFont="system" size="14"/>
-                                                        <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                                        <color key="backgroundColor" white="1" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                                                    </textFieldCell>
-                                                    <connections>
-                                                        <outlet property="delegate" destination="kMz-wA-UvW" id="Qfd-Uq-5wT"/>
-                                                    </connections>
-                                                </textField>
-                                                <box hidden="YES" boxType="custom" borderType="line" borderWidth="0.0" cornerRadius="1" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="dsP-dH-tLr">
-                                                    <rect key="frame" x="187" y="75" width="1" height="44"/>
-                                                    <view key="contentView" id="xoz-8w-FP0">
-                                                        <rect key="frame" x="0.0" y="0.0" width="1" height="44"/>
-                                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                    </view>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="1" id="JE6-8o-IVJ"/>
-                                                        <constraint firstAttribute="height" constant="44" id="TWf-5M-B4m"/>
-                                                    </constraints>
-                                                    <color key="fillColor" name="KMAccentColor"/>
-                                                </box>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="Prg-wG-qeL" firstAttribute="centerY" secondItem="dsP-dH-tLr" secondAttribute="centerY" id="HfR-kA-x1Q"/>
-                                                <constraint firstItem="Prg-wG-qeL" firstAttribute="centerX" secondItem="kMz-wA-UvW" secondAttribute="centerX" id="XrP-IY-Ufc"/>
-                                                <constraint firstItem="Prg-wG-qeL" firstAttribute="centerY" secondItem="kMz-wA-UvW" secondAttribute="centerY" id="fdc-O9-hMT"/>
-                                                <constraint firstItem="Prg-wG-qeL" firstAttribute="leading" secondItem="dsP-dH-tLr" secondAttribute="trailing" constant="20" id="qyp-9i-J4E"/>
-                                            </constraints>
-                                        </customView>
-                                        <popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="xZO-qY-11k">
-                                            <rect key="frame" x="17" y="35" width="227" height="24"/>
-                                            <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="border" inset="2" pullsDown="YES" selectedItem="Xy9-aP-3ec" id="G3V-L8-1Ia">
-                                                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                <font key="font" metaFont="menu"/>
-                                                <menu key="menu" id="KsE-gi-5gu">
-                                                    <items>
-                                                        <menuItem title="Item 1" state="on" hidden="YES" id="Xy9-aP-3ec"/>
-                                                    </items>
-                                                </menu>
-                                            </popUpButtonCell>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="19" id="4WS-1q-cr1"/>
-                                                <constraint firstAttribute="width" constant="220" id="SaO-WH-b9f"/>
-                                            </constraints>
-                                            <connections>
-                                                <action selector="boxItemClicked_Font:" target="-2" id="h6E-tB-xDM"/>
-                                            </connections>
-                                        </popUpButton>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="dfK-td-vO9">
-                                            <rect key="frame" x="308" y="36" width="228" height="24"/>
-                                            <subviews>
-                                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dSP-K5-TWG" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="0.0" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="m9W-Ec-Vo0">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="24" id="QRO-nN-dVg"/>
-                                                        <constraint firstAttribute="width" constant="24" id="hBr-MY-39t"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorTextButtonAction:" target="-2" id="89L-Xi-DhT"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="1" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="kaa-TU-cyJ" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="34" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="Irw-w1-sO2">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="6b4-z5-yb6"/>
-                                                        <constraint firstAttribute="height" constant="24" id="Fyg-fl-TyW"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorTextButtonAction:" target="-2" id="ZyU-m5-2ZT"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="2" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SJT-jB-SRM" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="68" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="0wJ-Rg-Wfl">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="S2e-hv-gju"/>
-                                                        <constraint firstAttribute="height" constant="24" id="cA3-vf-DmP"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorTextButtonAction:" target="-2" id="WdT-BN-gLT"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="3" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="yfE-5n-2V6" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="102" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="1sM-mn-Lff">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="ERH-zJ-cZP"/>
-                                                        <constraint firstAttribute="height" constant="24" id="M9I-A1-y1V"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorTextButtonAction:" target="-2" id="tdr-Gl-mHr"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="4" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="SWP-Bp-BEe" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="136" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="cuU-Zj-w1v">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="RSn-Vv-2yE"/>
-                                                        <constraint firstAttribute="height" constant="24" id="Zqa-T0-jMF"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorTextButtonAction:" target="-2" id="ncR-XO-Zqm"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="5" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="g0a-Fj-PUV" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="170" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="3wu-Sw-P2D">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="gIu-i5-ZnX"/>
-                                                        <constraint firstAttribute="height" constant="24" id="qzg-Sx-WiY"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorTextButtonAction:" target="-2" id="uQ6-s6-Bwf"/>
-                                                    </connections>
-                                                </button>
-                                                <button focusRingType="none" tag="6" translatesAutoresizingMaskIntoConstraints="NO" id="vMd-TE-sxe" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="204" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" imagePosition="only" alignment="center" focusRingType="none" imageScaling="proportionallyUpOrDown" inset="2" id="Miw-7x-tka">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="24" id="DiX-LS-v5t"/>
-                                                        <constraint firstAttribute="width" constant="24" id="wHf-oh-Cmm"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorTextButtonAction:" target="-2" id="hVx-KF-N1B"/>
-                                                    </connections>
-                                                </button>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="SWP-Bp-BEe" firstAttribute="centerY" secondItem="dSP-K5-TWG" secondAttribute="centerY" id="1Wt-d2-vB1"/>
-                                                <constraint firstItem="kaa-TU-cyJ" firstAttribute="centerY" secondItem="dSP-K5-TWG" secondAttribute="centerY" id="2E5-Zo-mzp"/>
-                                                <constraint firstItem="dSP-K5-TWG" firstAttribute="leading" secondItem="dfK-td-vO9" secondAttribute="leading" id="2hg-yK-Jxp"/>
-                                                <constraint firstItem="dSP-K5-TWG" firstAttribute="top" secondItem="dfK-td-vO9" secondAttribute="top" id="63i-qf-wNL"/>
-                                                <constraint firstItem="vMd-TE-sxe" firstAttribute="leading" secondItem="g0a-Fj-PUV" secondAttribute="trailing" constant="10" id="EvP-R1-ic6"/>
-                                                <constraint firstItem="kaa-TU-cyJ" firstAttribute="leading" secondItem="dSP-K5-TWG" secondAttribute="trailing" constant="10" id="Fyd-hS-ymO"/>
-                                                <constraint firstItem="SJT-jB-SRM" firstAttribute="centerY" secondItem="dSP-K5-TWG" secondAttribute="centerY" id="OTk-jf-njo"/>
-                                                <constraint firstItem="g0a-Fj-PUV" firstAttribute="leading" secondItem="SWP-Bp-BEe" secondAttribute="trailing" constant="10" id="TZX-JC-cH1"/>
-                                                <constraint firstAttribute="bottom" secondItem="dSP-K5-TWG" secondAttribute="bottom" id="Uqd-R4-XLQ"/>
-                                                <constraint firstAttribute="trailing" secondItem="vMd-TE-sxe" secondAttribute="trailing" id="Ve8-ki-lFA"/>
-                                                <constraint firstItem="yfE-5n-2V6" firstAttribute="leading" secondItem="SJT-jB-SRM" secondAttribute="trailing" constant="10" id="b6i-4T-hbI"/>
-                                                <constraint firstItem="yfE-5n-2V6" firstAttribute="centerY" secondItem="dSP-K5-TWG" secondAttribute="centerY" id="dlQ-3P-8lV"/>
-                                                <constraint firstItem="vMd-TE-sxe" firstAttribute="centerY" secondItem="g0a-Fj-PUV" secondAttribute="centerY" id="mZ4-8A-a6y"/>
-                                                <constraint firstItem="g0a-Fj-PUV" firstAttribute="centerY" secondItem="dSP-K5-TWG" secondAttribute="centerY" id="nee-xX-kaU"/>
-                                                <constraint firstItem="SWP-Bp-BEe" firstAttribute="leading" secondItem="yfE-5n-2V6" secondAttribute="trailing" constant="10" id="qaE-7R-KEk"/>
-                                                <constraint firstItem="SJT-jB-SRM" firstAttribute="leading" secondItem="kaa-TU-cyJ" secondAttribute="trailing" constant="10" id="w4j-RK-83X"/>
-                                            </constraints>
-                                        </customView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="kMz-wA-UvW" firstAttribute="leading" secondItem="ja1-TS-BoL" secondAttribute="leading" constant="20" id="0Xk-no-6E1"/>
-                                        <constraint firstItem="dfK-td-vO9" firstAttribute="top" secondItem="kMz-wA-UvW" secondAttribute="bottom" constant="16" id="DhM-mW-bte"/>
-                                        <constraint firstAttribute="bottom" secondItem="dfK-td-vO9" secondAttribute="bottom" constant="36" id="Guu-Lr-L4O"/>
-                                        <constraint firstItem="dfK-td-vO9" firstAttribute="trailing" secondItem="kMz-wA-UvW" secondAttribute="trailing" id="gMN-5e-ggt"/>
-                                        <constraint firstItem="xZO-qY-11k" firstAttribute="leading" secondItem="kMz-wA-UvW" secondAttribute="leading" id="iiD-0u-Boa"/>
-                                        <constraint firstAttribute="trailing" secondItem="kMz-wA-UvW" secondAttribute="trailing" constant="20" id="tFZ-dN-Moj"/>
-                                        <constraint firstItem="dfK-td-vO9" firstAttribute="centerY" secondItem="xZO-qY-11k" secondAttribute="centerY" id="xJx-Ij-3lg"/>
-                                        <constraint firstItem="kMz-wA-UvW" firstAttribute="top" secondItem="ja1-TS-BoL" secondAttribute="top" constant="21" id="zJg-ku-y8x"/>
-                                    </constraints>
-                                </view>
-                            </tabViewItem>
-                            <tabViewItem label="Trackpad" identifier="2" id="ZWb-Pc-soZ">
-                                <view key="view" id="Hyb-Pp-Gl1">
-                                    <rect key="frame" x="10" y="33" width="556" height="290"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <subviews>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="YpY-Ar-kl8" customClass="KMDrawSignatureView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                            <rect key="frame" x="20" y="76" width="516" height="193"/>
-                                        </customView>
-                                        <button focusRingType="none" translatesAutoresizingMaskIntoConstraints="NO" id="hTk-co-rOw">
-                                            <rect key="frame" x="18" y="39" width="83" height="18"/>
-                                            <buttonCell key="cell" type="check" title="Trackpad" bezelStyle="regularSquare" imagePosition="left" focusRingType="none" inset="2" id="Zzy-7b-yiN">
-                                                <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                                <font key="font" metaFont="system"/>
-                                            </buttonCell>
-                                            <connections>
-                                                <action selector="trackpadButton_Click:" target="-2" id="cd1-9Y-2Z7"/>
-                                            </connections>
-                                        </button>
-                                        <slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6qL-r4-WZt">
-                                            <rect key="frame" x="146" y="32" width="98" height="28"/>
-                                            <constraints>
-                                                <constraint firstAttribute="width" constant="94" id="j9l-OR-Xwv"/>
-                                            </constraints>
-                                            <sliderCell key="cell" continuous="YES" alignment="left" minValue="0.10000000000000001" maxValue="4" doubleValue="0.8441558441558441" tickMarkPosition="above" sliderType="linear" id="yLo-SM-PMD"/>
-                                            <connections>
-                                                <action selector="slider_Change:" target="-2" id="GYe-AO-QG8"/>
-                                            </connections>
-                                        </slider>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="8gW-RC-WdR">
-                                            <rect key="frame" x="308" y="36" width="228" height="24"/>
-                                            <subviews>
-                                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hmB-iA-f1I" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="0.0" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="nxT-KZ-YW4">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="pct-Mn-IE9"/>
-                                                        <constraint firstAttribute="height" constant="24" id="s1c-ca-yuF"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorInkButtonAction:" target="-2" id="9jD-aD-amY"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="1" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="W3o-fN-rOw" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="34" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="chZ-50-dOm">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="5zu-28-PR7"/>
-                                                        <constraint firstAttribute="height" constant="24" id="BOC-Od-gVp"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorInkButtonAction:" target="-2" id="0YI-oM-64g"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="2" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="wUy-ZZ-NV6" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="68" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="rBt-4e-ahZ">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="24" id="0RT-zb-Ren"/>
-                                                        <constraint firstAttribute="width" constant="24" id="pkk-VY-zwP"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorInkButtonAction:" target="-2" id="E55-WE-yqx"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="3" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="5Ho-ZM-JxE" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="102" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="ch8-ra-a1j">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="XNe-yI-UVq"/>
-                                                        <constraint firstAttribute="height" constant="24" id="cds-J6-0Ar"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorInkButtonAction:" target="-2" id="DzY-KX-vNt"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="4" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="cVn-Dj-7k0" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="136" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="g56-pL-apT">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="24" id="3Hk-P5-83Z"/>
-                                                        <constraint firstAttribute="width" constant="24" id="5fH-gv-5XX"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorInkButtonAction:" target="-2" id="2Vg-k2-X1t"/>
-                                                    </connections>
-                                                </button>
-                                                <button tag="5" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="g94-8v-Pzp" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="170" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" inset="2" id="5YQ-gx-saR">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="24" id="Gk1-OZ-Kc6"/>
-                                                        <constraint firstAttribute="width" constant="24" id="RTZ-NT-TMX"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorInkButtonAction:" target="-2" id="gct-3E-aAS"/>
-                                                    </connections>
-                                                </button>
-                                                <button focusRingType="none" tag="6" translatesAutoresizingMaskIntoConstraints="NO" id="pdk-Nk-qtg" customClass="KMSignatureColorButton">
-                                                    <rect key="frame" x="204" y="0.0" width="24" height="24"/>
-                                                    <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" imagePosition="only" alignment="center" focusRingType="none" imageScaling="proportionallyUpOrDown" inset="2" id="ZY8-WX-cML">
-                                                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                        <font key="font" metaFont="system"/>
-                                                    </buttonCell>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="24" id="9aL-e7-EBd"/>
-                                                        <constraint firstAttribute="height" constant="24" id="xrt-fT-Naw"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="colorInkButtonAction:" target="-2" id="5EN-D9-4rU"/>
-                                                    </connections>
-                                                </button>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="cVn-Dj-7k0" firstAttribute="leading" secondItem="5Ho-ZM-JxE" secondAttribute="trailing" constant="10" id="32m-AG-vzZ"/>
-                                                <constraint firstItem="W3o-fN-rOw" firstAttribute="centerY" secondItem="hmB-iA-f1I" secondAttribute="centerY" id="57G-nT-BYU"/>
-                                                <constraint firstAttribute="bottom" secondItem="hmB-iA-f1I" secondAttribute="bottom" id="9Kq-6q-B1v"/>
-                                                <constraint firstAttribute="trailing" secondItem="pdk-Nk-qtg" secondAttribute="trailing" id="DQK-T2-98S"/>
-                                                <constraint firstItem="5Ho-ZM-JxE" firstAttribute="centerY" secondItem="hmB-iA-f1I" secondAttribute="centerY" id="Pep-NH-hL8"/>
-                                                <constraint firstItem="hmB-iA-f1I" firstAttribute="top" secondItem="8gW-RC-WdR" secondAttribute="top" id="Tma-db-yoh"/>
-                                                <constraint firstItem="hmB-iA-f1I" firstAttribute="leading" secondItem="8gW-RC-WdR" secondAttribute="leading" id="Vjx-AX-A15"/>
-                                                <constraint firstItem="g94-8v-Pzp" firstAttribute="leading" secondItem="cVn-Dj-7k0" secondAttribute="trailing" constant="10" id="ZHY-QY-lp7"/>
-                                                <constraint firstItem="cVn-Dj-7k0" firstAttribute="centerY" secondItem="hmB-iA-f1I" secondAttribute="centerY" id="aCB-LQ-GCs"/>
-                                                <constraint firstItem="wUy-ZZ-NV6" firstAttribute="centerY" secondItem="hmB-iA-f1I" secondAttribute="centerY" id="avq-br-8kh"/>
-                                                <constraint firstItem="5Ho-ZM-JxE" firstAttribute="leading" secondItem="wUy-ZZ-NV6" secondAttribute="trailing" constant="10" id="moY-hC-Lxg"/>
-                                                <constraint firstItem="pdk-Nk-qtg" firstAttribute="centerY" secondItem="g94-8v-Pzp" secondAttribute="centerY" id="oi2-Ap-Oac"/>
-                                                <constraint firstItem="g94-8v-Pzp" firstAttribute="centerY" secondItem="hmB-iA-f1I" secondAttribute="centerY" id="pzc-Hw-tR0"/>
-                                                <constraint firstItem="pdk-Nk-qtg" firstAttribute="leading" secondItem="g94-8v-Pzp" secondAttribute="trailing" constant="10" id="qPv-5m-F5F"/>
-                                                <constraint firstItem="W3o-fN-rOw" firstAttribute="leading" secondItem="hmB-iA-f1I" secondAttribute="trailing" constant="10" id="yht-Yx-B2j"/>
-                                                <constraint firstItem="wUy-ZZ-NV6" firstAttribute="leading" secondItem="W3o-fN-rOw" secondAttribute="trailing" constant="10" id="zjb-QB-E8h"/>
-                                            </constraints>
-                                        </customView>
-                                        <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="PHX-fM-ig4">
-                                            <rect key="frame" x="248" y="38" width="40" height="20"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="20" id="fBk-ak-0rC"/>
-                                                <constraint firstAttribute="width" constant="40" id="wTk-f4-2I6"/>
-                                            </constraints>
-                                            <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" id="h5o-ZD-SZm">
-                                                <font key="font" metaFont="system"/>
-                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                            </textFieldCell>
-                                        </textField>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="8gW-RC-WdR" firstAttribute="trailing" secondItem="YpY-Ar-kl8" secondAttribute="trailing" id="0Ed-ZX-X1r"/>
-                                        <constraint firstItem="PHX-fM-ig4" firstAttribute="centerY" secondItem="6qL-r4-WZt" secondAttribute="centerY" id="5ic-2G-sgr"/>
-                                        <constraint firstAttribute="trailing" secondItem="YpY-Ar-kl8" secondAttribute="trailing" constant="20" id="9Ws-ve-j1e"/>
-                                        <constraint firstItem="8gW-RC-WdR" firstAttribute="leading" secondItem="6qL-r4-WZt" secondAttribute="trailing" constant="66" id="AbF-7j-m9Y"/>
-                                        <constraint firstItem="PHX-fM-ig4" firstAttribute="leading" secondItem="6qL-r4-WZt" secondAttribute="trailing" constant="6" id="BrZ-8V-8DH"/>
-                                        <constraint firstItem="YpY-Ar-kl8" firstAttribute="top" secondItem="Hyb-Pp-Gl1" secondAttribute="top" constant="21" id="FG3-5C-66y"/>
-                                        <constraint firstAttribute="bottom" secondItem="8gW-RC-WdR" secondAttribute="bottom" constant="36" id="KLC-7T-KLi"/>
-                                        <constraint firstItem="YpY-Ar-kl8" firstAttribute="leading" secondItem="Hyb-Pp-Gl1" secondAttribute="leading" constant="20" id="Lmf-VZ-S70"/>
-                                        <constraint firstItem="8gW-RC-WdR" firstAttribute="centerY" secondItem="6qL-r4-WZt" secondAttribute="centerY" id="MwS-co-SHp"/>
-                                        <constraint firstItem="8gW-RC-WdR" firstAttribute="top" secondItem="YpY-Ar-kl8" secondAttribute="bottom" constant="16" id="Ne3-Th-qw4"/>
-                                        <constraint firstItem="hTk-co-rOw" firstAttribute="leading" secondItem="YpY-Ar-kl8" secondAttribute="leading" id="qkf-J1-2P4"/>
-                                        <constraint firstItem="8gW-RC-WdR" firstAttribute="centerY" secondItem="hTk-co-rOw" secondAttribute="centerY" id="s5g-8D-jek"/>
-                                    </constraints>
-                                </view>
-                            </tabViewItem>
-                            <tabViewItem label="Image" identifier="3" id="vK7-WT-TxV">
-                                <view key="view" id="NwE-bi-Hgk">
-                                    <rect key="frame" x="10" y="33" width="556" height="290"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <subviews>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="mpG-Sx-Pe8">
-                                            <rect key="frame" x="20" y="40" width="516" height="229"/>
-                                            <subviews>
-                                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="BdH-VL-hQf">
-                                                    <rect key="frame" x="138" y="81" width="240" height="68"/>
-                                                    <subviews>
-                                                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ZaA-uR-3WB">
-                                                            <rect key="frame" x="111" y="29" width="18" height="17"/>
-                                                            <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="or" id="wfl-jK-Qgx">
-                                                                <font key="font" metaFont="system" size="14"/>
-                                                                <color key="textColor" red="0.3921568627" green="0.3921568627" blue="0.3921568627" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                                                <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                                                            </textFieldCell>
-                                                        </textField>
-                                                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="3D8-bL-P1k">
-                                                            <rect key="frame" x="8" y="51" width="224" height="17"/>
-                                                            <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Drag image here" id="Wzz-YY-UHL">
-                                                                <font key="font" metaFont="system" size="14"/>
-                                                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                                <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                                                            </textFieldCell>
-                                                        </textField>
-                                                        <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7oB-5a-zwH">
-                                                            <rect key="frame" x="68" y="-7" width="105" height="32"/>
-                                                            <buttonCell key="cell" type="push" title="Select a file" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="tKF-mG-edD">
-                                                                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                                <font key="font" metaFont="system"/>
-                                                                <string key="keyEquivalent" base64-UTF8="YES">
-DQ
-</string>
-                                                            </buttonCell>
-                                                            <constraints>
-                                                                <constraint firstAttribute="height" constant="20" id="eTG-Lz-5rx"/>
-                                                            </constraints>
-                                                        </button>
-                                                    </subviews>
-                                                    <constraints>
-                                                        <constraint firstAttribute="bottom" secondItem="7oB-5a-zwH" secondAttribute="bottom" id="1pV-ke-syG"/>
-                                                        <constraint firstItem="ZaA-uR-3WB" firstAttribute="centerX" secondItem="BdH-VL-hQf" secondAttribute="centerX" id="3gL-B4-51E"/>
-                                                        <constraint firstItem="ZaA-uR-3WB" firstAttribute="top" secondItem="3D8-bL-P1k" secondAttribute="bottom" constant="5" id="Nhz-XZ-QNd"/>
-                                                        <constraint firstAttribute="width" constant="240" id="NlE-Se-sYu"/>
-                                                        <constraint firstItem="3D8-bL-P1k" firstAttribute="leading" secondItem="BdH-VL-hQf" secondAttribute="leading" constant="10" id="RAH-8g-sJy"/>
-                                                        <constraint firstItem="7oB-5a-zwH" firstAttribute="centerX" secondItem="BdH-VL-hQf" secondAttribute="centerX" id="Uxz-9v-Nlj"/>
-                                                        <constraint firstAttribute="height" constant="68" id="bCo-T5-74k"/>
-                                                        <constraint firstAttribute="trailing" secondItem="3D8-bL-P1k" secondAttribute="trailing" constant="10" id="c7z-hd-IYy"/>
-                                                        <constraint firstItem="3D8-bL-P1k" firstAttribute="top" secondItem="BdH-VL-hQf" secondAttribute="top" id="hvK-An-yWN"/>
-                                                    </constraints>
-                                                </customView>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="BdH-VL-hQf" firstAttribute="centerY" secondItem="mpG-Sx-Pe8" secondAttribute="centerY" id="PUC-Oj-XyB"/>
-                                                <constraint firstItem="BdH-VL-hQf" firstAttribute="centerX" secondItem="mpG-Sx-Pe8" secondAttribute="centerX" id="sLQ-3m-vfr"/>
-                                            </constraints>
-                                            <connections>
-                                                <outlet property="dragButton" destination="7oB-5a-zwH" id="ag9-Pd-5Yp"/>
-                                                <outlet property="heraLabel" destination="3D8-bL-P1k" id="exe-J6-9ex"/>
-                                                <outlet property="orLabel" destination="ZaA-uR-3WB" id="o3A-yl-1Wc"/>
-                                                <outlet property="pictureView" destination="BdH-VL-hQf" id="uEm-rt-8Ia"/>
-                                            </connections>
-                                        </customView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="mpG-Sx-Pe8" firstAttribute="leading" secondItem="NwE-bi-Hgk" secondAttribute="leading" constant="20" id="Nq5-hl-i8c"/>
-                                        <constraint firstAttribute="trailing" secondItem="mpG-Sx-Pe8" secondAttribute="trailing" constant="20" id="aZ6-LO-Ode"/>
-                                        <constraint firstAttribute="bottom" secondItem="mpG-Sx-Pe8" secondAttribute="bottom" constant="40" id="mZl-dN-Ure"/>
-                                        <constraint firstItem="mpG-Sx-Pe8" firstAttribute="top" secondItem="NwE-bi-Hgk" secondAttribute="top" constant="21" id="tqR-HN-No3"/>
-                                    </constraints>
-                                </view>
-                            </tabViewItem>
-                        </tabViewItems>
-                    </tabView>
-                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="8sI-6n-jcW">
-                        <rect key="frame" x="126" y="20" width="229" height="16"/>
-                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Press &quot;esc&quot; to disable the Trackpad." id="m48-yd-Nf0">
-                            <font key="font" metaFont="system"/>
-                            <color key="textColor" red="0.18823529410000001" green="0.51764705879999995" blue="0.98431372549999996" alpha="1" colorSpace="calibratedRGB"/>
-                            <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                        </textFieldCell>
-                    </textField>
-                </subviews>
-                <constraints>
-                    <constraint firstItem="j7L-83-3Ut" firstAttribute="top" secondItem="cnS-vP-U1z" secondAttribute="bottom" constant="21" id="57K-cG-PdO"/>
-                    <constraint firstItem="9qj-7Y-28D" firstAttribute="leading" secondItem="cnS-vP-U1z" secondAttribute="leading" id="85g-H0-pM2"/>
-                    <constraint firstAttribute="bottom" secondItem="j7L-83-3Ut" secondAttribute="bottom" constant="18" id="AlF-Ra-vWr"/>
-                    <constraint firstItem="j7L-83-3Ut" firstAttribute="trailing" secondItem="cnS-vP-U1z" secondAttribute="trailing" id="Cj3-ke-B8k"/>
-                    <constraint firstItem="cnS-vP-U1z" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="14" id="DLz-RY-xmu"/>
-                    <constraint firstItem="j7L-83-3Ut" firstAttribute="leading" secondItem="s0y-mf-WpS" secondAttribute="trailing" constant="8" id="X9g-V2-3wh"/>
-                    <constraint firstItem="j7L-83-3Ut" firstAttribute="centerY" secondItem="s0y-mf-WpS" secondAttribute="centerY" id="Y4D-k0-sM3"/>
-                    <constraint firstItem="j7L-83-3Ut" firstAttribute="centerY" secondItem="9qj-7Y-28D" secondAttribute="centerY" id="ccU-qA-3KC"/>
-                    <constraint firstAttribute="trailing" secondItem="cnS-vP-U1z" secondAttribute="trailing" constant="14" id="lLG-lw-5Yc"/>
-                    <constraint firstItem="s0y-mf-WpS" firstAttribute="centerY" secondItem="8sI-6n-jcW" secondAttribute="centerY" id="o8L-NT-cYh"/>
-                    <constraint firstItem="8sI-6n-jcW" firstAttribute="centerX" secondItem="se5-gp-TjO" secondAttribute="centerX" constant="-55" id="qgN-ns-yvO"/>
-                    <constraint firstItem="cnS-vP-U1z" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="21" id="zPT-Tb-gaP"/>
-                </constraints>
-            </view>
-            <connections>
-                <outlet property="delegate" destination="-2" id="0bl-1N-AYu"/>
-            </connections>
-            <point key="canvasLocation" x="-158" y="114"/>
-        </window>
-        <menuItem title="Font" id="Bgp-vT-51J">
-            <attributedString key="attributedTitle"/>
-            <modifierMask key="keyEquivalentModifierMask"/>
-            <menu key="submenu" title="Font" systemMenu="font" id="NPH-NP-lJS">
-                <items>
-                    <menuItem title="Show Fonts" keyEquivalent="t" id="uof-f0-PYw">
-                        <connections>
-                            <action selector="orderFrontFontPanel:" target="wyz-2S-MNY" id="nOq-gE-ORo"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem title="Bold" tag="2" keyEquivalent="b" id="tDu-4U-w2p">
-                        <connections>
-                            <action selector="addFontTrait:" target="wyz-2S-MNY" id="rVI-xr-G8J"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem title="Italic" tag="1" keyEquivalent="i" id="caa-9k-YLw">
-                        <connections>
-                            <action selector="addFontTrait:" target="wyz-2S-MNY" id="oqS-4o-gRd"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem title="Underline" keyEquivalent="u" id="xem-BC-ZPu">
-                        <connections>
-                            <action selector="underline:" target="-1" id="j0g-8Z-ZI3"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem isSeparatorItem="YES" id="Qv3-wE-pK4"/>
-                    <menuItem title="Bigger" tag="3" keyEquivalent="+" id="Ec1-fx-dp5">
-                        <connections>
-                            <action selector="modifyFont:" target="wyz-2S-MNY" id="Yuc-ss-hwS"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem title="Smaller" tag="4" keyEquivalent="-" id="haZ-xV-ZGG">
-                        <connections>
-                            <action selector="modifyFont:" target="wyz-2S-MNY" id="Ahb-Vy-uyv"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem isSeparatorItem="YES" id="zMA-3c-Z91"/>
-                    <menuItem title="Kern" id="huX-Kg-0Ky">
-                        <modifierMask key="keyEquivalentModifierMask"/>
-                        <menu key="submenu" title="Kern" id="9h1-Ev-LMA">
-                            <items>
-                                <menuItem title="Use Default" id="bdd-oA-fmP">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="useStandardKerning:" target="-1" id="Ktr-zw-bPd"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Use None" id="CMw-O7-lWK">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="turnOffKerning:" target="-1" id="jsl-9p-oG9"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Tighten" id="pIq-Qb-p0W">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="tightenKerning:" target="-1" id="iPL-Em-0FK"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Loosen" id="IYO-zK-xVK">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="loosenKerning:" target="-1" id="LzA-Rg-uC8"/>
-                                    </connections>
-                                </menuItem>
-                            </items>
-                        </menu>
-                    </menuItem>
-                    <menuItem title="Ligatures" id="Cno-Tp-WjR">
-                        <modifierMask key="keyEquivalentModifierMask"/>
-                        <menu key="submenu" title="Ligatures" id="BNB-rD-IXU">
-                            <items>
-                                <menuItem title="Use Default" id="Ik7-w2-aog">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="useStandardLigatures:" target="-1" id="UUm-nQ-Q9r"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Use None" id="fbn-Yd-Tem">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="turnOffLigatures:" target="-1" id="URR-UJ-QNr"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Use All" id="8WB-Dk-tFM">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="useAllLigatures:" target="-1" id="hvn-xw-TH1"/>
-                                    </connections>
-                                </menuItem>
-                            </items>
-                        </menu>
-                    </menuItem>
-                    <menuItem title="Baseline" id="V8T-sk-gkc">
-                        <modifierMask key="keyEquivalentModifierMask"/>
-                        <menu key="submenu" title="Baseline" id="Hws-RP-4jY">
-                            <items>
-                                <menuItem title="Use Default" id="TKk-wH-3mJ">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="unscript:" target="-1" id="3Dk-dL-c4g"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Superscript" id="rVP-ya-mG8">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="superscript:" target="-1" id="8PC-V5-omy"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Subscript" id="fI7-we-TQz">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="subscript:" target="-1" id="XEa-o0-hOg"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Raise" id="QeT-1b-Ceb">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="raiseBaseline:" target="-1" id="t2h-eZ-GEf"/>
-                                    </connections>
-                                </menuItem>
-                                <menuItem title="Lower" id="FRF-mX-3lp">
-                                    <modifierMask key="keyEquivalentModifierMask"/>
-                                    <connections>
-                                        <action selector="lowerBaseline:" target="-1" id="qpV-Ea-1jv"/>
-                                    </connections>
-                                </menuItem>
-                            </items>
-                        </menu>
-                    </menuItem>
-                    <menuItem isSeparatorItem="YES" id="soT-hs-wSb"/>
-                    <menuItem title="Show Colors" keyEquivalent="C" id="QLE-NT-yjI">
-                        <connections>
-                            <action selector="orderFrontColorPanel:" target="-1" id="A29-Ba-D6B"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem isSeparatorItem="YES" id="KTc-22-VF0"/>
-                    <menuItem title="Copy Style" keyEquivalent="c" id="csU-fh-bwb">
-                        <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
-                        <connections>
-                            <action selector="copyFont:" target="-1" id="fSr-MX-aiY"/>
-                        </connections>
-                    </menuItem>
-                    <menuItem title="Paste Style" keyEquivalent="v" id="4lJ-K5-p7p">
-                        <modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
-                        <connections>
-                            <action selector="pasteFont:" target="-1" id="m7g-fM-epu"/>
-                        </connections>
-                    </menuItem>
-                </items>
-            </menu>
-        </menuItem>
-        <customObject id="wyz-2S-MNY" customClass="NSFontManager"/>
-    </objects>
-    <resources>
-        <namedColor name="KMAccentColor">
-            <color red="0.27843137254901962" green="0.49411764705882355" blue="0.87058823529411766" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-        </namedColor>
-    </resources>
-</document>

+ 0 - 146
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSigntureViewItem.swift

@@ -1,146 +0,0 @@
-//
-//  KMSigntureViewItem.swift
-//  PDF Reader Pro
-//
-//  Created by lizhe on 2023/10/9.
-//
-
-import Cocoa
-
-@objcMembers class KMSigntureViewItem: NSCollectionViewItem {
-    @IBOutlet var contendView: NSView!
-    @IBOutlet var iconImg: NSImageView!
-    @IBOutlet var deleteIconBtn: NSButton!
-
-    weak var delegate: KMSigntureViewItemDelegate?
-    
-    var trackingArea: NSTrackingArea?
-    var itemIndex: Int = 0
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        self.contendView.wantsLayer = true
-        self.contendView.layer?.cornerRadius = 8.0
-        self.contendView.layer?.masksToBounds = true
-        self.contendView.layer?.borderWidth = 1.0
-        self.contendView.layer?.borderColor = NSColor.clear.cgColor
-
-        self.trackingArea = NSTrackingArea(rect: self.view.bounds, options: [.mouseEnteredAndExited, .inVisibleRect, .activeAlways, .mouseMoved], owner: self, userInfo: nil)
-        self.view.addTrackingArea(self.trackingArea!)
-
-        self.deleteIconBtn.isHidden = true
-
-        tableViewMenu()
-        
-        DistributedNotificationCenter.default().addObserver(self, selector: #selector(themeChanged(notification:)), name: NSNotification.Name("AppleInterfaceThemeChangedNotification"), object: nil)
-    }
-    
-    deinit {
-        DistributedNotificationCenter.default().removeObserver(self)
-    }
-
-    func tableViewMenu() {
-        let menu = NSMenu()
-        let item = menu.addItem(withTitle: NSLocalizedString("Output", comment: ""), action: nil, keyEquivalent: "")
-        let tSubMenu = NSMenu()
-        var tMenuItem = tSubMenu.insertItem(withTitle: NSLocalizedString("PNG", comment: ""), action: #selector(exportCustomizeStamp(_:)), keyEquivalent: "", at: 0)
-        tMenuItem.tag = 0
-        // tMenuItem = tSubMenu.insertItem(withTitle: NSLocalizedString("JPG", comment: ""), action: #selector(exportCustomizeStamp(_:)), keyEquivalent: "", at: 1)
-        // tMenuItem.tag = 1
-        tMenuItem = tSubMenu.insertItem(withTitle: NSLocalizedString("PDF", comment: ""), action: #selector(exportCustomizeStamp(_:)), keyEquivalent: "", at: 1)
-        tMenuItem.tag = 2
-        item.submenu = tSubMenu
-
-        menu.addItem(NSMenuItem.separator())
-        menu.addItem(withTitle: NSLocalizedString("Remove", comment: ""), action: #selector(deleteCustomizeStamp), keyEquivalent: "")
-        menu.addItem(withTitle: NSLocalizedString("Remove All", comment: ""), action: #selector(deleteAllCustomizeStamp), keyEquivalent: "")
-
-        self.view.menu = menu
-    }
-
-    var isSelect: Bool = false {
-        didSet {
-           updateBgColor()
-        }
-    }
-
-    @objc func themeChanged(notification: NSNotification) {
-        DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
-            self.updateBgColor()
-        }
-    }
-    
-    func updateBgColor() {
-        if KMAppearance.isDarkMode() {
-            if isSelect {
-                self.contendView.layer?.borderColor = NSColor(red: 37/255.0, green: 65/255.0, blue: 107/255.0, alpha: 1.0).cgColor
-                self.contendView.layer?.backgroundColor = NSColor(red: 37/255.0, green: 65/255.0, blue: 107/255.0, alpha: 1.0).cgColor
-            } else {
-                self.contendView.layer?.borderColor = NSColor.clear.cgColor
-                self.contendView.layer?.backgroundColor = NSColor.clear.cgColor
-            }
-        }else {
-            if isSelect {
-                self.contendView.layer?.borderColor = NSColor(red: 217/255.0, green: 228/255.0, blue: 250/255.0, alpha: 1.0).cgColor
-                self.contendView.layer?.backgroundColor = NSColor(red: 217/255.0, green: 228/255.0, blue: 250/255.0, alpha: 1.0).cgColor
-            } else {
-                self.contendView.layer?.borderColor = NSColor.clear.cgColor
-                self.contendView.layer?.backgroundColor = NSColor.clear.cgColor
-            }
-        }
-    }
-    
-    override func mouseEntered(with event: NSEvent) {
-        super.mouseEntered(with: event)
-
-        if isSelect {
-            self.deleteIconBtn.isHidden = false
-        } else {
-            self.deleteIconBtn.isHidden = false
-            if KMAppearance.isDarkMode() {
-                self.contendView.layer?.borderColor = NSColor(red: 37/255.0, green: 65/255.0, blue: 107/255.0, alpha: 1.0).cgColor
-                self.contendView.layer?.backgroundColor = NSColor(red: 37/255.0, green: 65/255.0, blue: 107/255.0, alpha: 1.0).cgColor
-            }else {
-                self.contendView.layer?.borderColor = NSColor(red: 217/255.0, green: 228/255.0, blue: 250/255.0, alpha: 1.0).cgColor
-                self.contendView.layer?.backgroundColor = NSColor(red: 217/255.0, green: 228/255.0, blue: 250/255.0, alpha: 1.0).cgColor
-            }
-        }
-    }
-
-    override func mouseExited(with event: NSEvent) {
-        super.mouseExited(with: event)
-
-        if isSelect {
-            self.deleteIconBtn.isHidden = false
-        } else {
-            self.deleteIconBtn.isHidden = true
-            self.contendView.layer?.borderColor = NSColor.clear.cgColor
-            self.contendView.layer?.backgroundColor = NSColor.clear.cgColor
-        }
-    }
-
-    @objc func exportCustomizeStamp(_ sender: NSMenuItem) {
-        if let delegate = self.delegate {
-            delegate.kmSigntureViewItem(self, didClickMenuWithItem: sender)
-        }
-    }
-
-    @objc func deleteCustomizeStamp() {
-        if let delegate = self.delegate {
-            delegate.kmSigntureViewItemDidClickDeleteMenuItem(self)
-        }
-    }
-
-    @objc func deleteAllCustomizeStamp() {
-        if let delegate = self.delegate {
-            delegate.kmSigntureViewItemDidClickAllDeleteMenuItem(self)
-        }
-    }
-}
-
-@objc protocol KMSigntureViewItemDelegate: NSObjectProtocol {
-    func kmSigntureViewItem(_ item: KMSigntureViewItem, didClickMenuWithItem menuItem: NSMenuItem)
-    func kmSigntureViewItemDidClickDeleteMenuItem(_ item: KMSigntureViewItem)
-    func kmSigntureViewItemDidClickAllDeleteMenuItem(_ item: KMSigntureViewItem)
-}

+ 0 - 64
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/Signature/Old/KMSigntureViewItem.xib

@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMSigntureViewItem">
-            <connections>
-                <outlet property="contendView" destination="2B3-pm-Vma" id="Brv-at-HWU"/>
-                <outlet property="deleteIconBtn" destination="o7x-9r-sOc" id="G7b-51-rAV"/>
-                <outlet property="iconImg" destination="UhD-yF-ZIM" id="K71-sA-vDy"/>
-                <outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <customView id="Hz6-mo-xeY">
-            <rect key="frame" x="0.0" y="0.0" width="228" height="64"/>
-            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-            <subviews>
-                <customView translatesAutoresizingMaskIntoConstraints="NO" id="2B3-pm-Vma">
-                    <rect key="frame" x="0.0" y="0.0" width="228" height="64"/>
-                    <subviews>
-                        <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="UhD-yF-ZIM">
-                            <rect key="frame" x="0.0" y="0.0" width="228" height="64"/>
-                            <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="eDR-Fq-gAP"/>
-                        </imageView>
-                        <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="o7x-9r-sOc">
-                            <rect key="frame" x="196" y="32" width="30" height="30"/>
-                            <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="KMImageNameUXIconBtnCloseNor" imagePosition="only" alignment="center" state="on" imageScaling="proportionallyDown" inset="2" id="Ila-Cl-Vdj">
-                                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                <font key="font" metaFont="system"/>
-                            </buttonCell>
-                            <constraints>
-                                <constraint firstAttribute="width" constant="30" id="Yqs-7z-DBZ"/>
-                                <constraint firstAttribute="height" constant="30" id="qBR-rC-TAe"/>
-                            </constraints>
-                        </button>
-                    </subviews>
-                    <constraints>
-                        <constraint firstItem="o7x-9r-sOc" firstAttribute="top" secondItem="2B3-pm-Vma" secondAttribute="top" constant="2" id="PFh-U1-95c"/>
-                        <constraint firstAttribute="bottom" secondItem="UhD-yF-ZIM" secondAttribute="bottom" id="RBr-cC-NId"/>
-                        <constraint firstItem="UhD-yF-ZIM" firstAttribute="top" secondItem="2B3-pm-Vma" secondAttribute="top" id="eEk-R2-SoC"/>
-                        <constraint firstItem="UhD-yF-ZIM" firstAttribute="leading" secondItem="2B3-pm-Vma" secondAttribute="leading" id="foh-jc-In4"/>
-                        <constraint firstAttribute="trailing" secondItem="UhD-yF-ZIM" secondAttribute="trailing" id="fp5-FK-8L4"/>
-                        <constraint firstAttribute="trailing" secondItem="o7x-9r-sOc" secondAttribute="trailing" constant="2" id="lGH-Vw-F4a"/>
-                    </constraints>
-                </customView>
-            </subviews>
-            <constraints>
-                <constraint firstItem="2B3-pm-Vma" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" id="Z5Y-3l-Ccp"/>
-                <constraint firstAttribute="bottom" secondItem="2B3-pm-Vma" secondAttribute="bottom" id="v3p-T1-cRf"/>
-                <constraint firstAttribute="trailing" secondItem="2B3-pm-Vma" secondAttribute="trailing" id="wV7-Q1-ZKX"/>
-                <constraint firstItem="2B3-pm-Vma" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" id="xaW-tT-RKu"/>
-            </constraints>
-            <point key="canvasLocation" x="81" y="132"/>
-        </customView>
-    </objects>
-    <resources>
-        <image name="KMImageNameUXIconBtnCloseNor" width="16" height="16"/>
-    </resources>
-</document>

+ 1 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/Controllers/KMCreateStampWindowController.xib

@@ -23,7 +23,7 @@
             <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" fullSizeContentView="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
             <rect key="contentRect" x="196" y="240" width="480" height="476"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="1512" height="944"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
             <view key="contentView" id="se5-gp-TjO">
                 <rect key="frame" x="0.0" y="0.0" width="480" height="476"/>
                 <autoresizingMask key="autoresizingMask"/>

+ 0 - 256
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/Controller/KMStampCreaterWindowController.swift

@@ -1,256 +0,0 @@
-//
-//  KMStampCreaterWindowController.swift
-//  PDF Reader Pro
-//
-//  Created by liujiajie on 2023/11/20.
-//
-
-import Cocoa
-
-typealias closeStampCreaterWindowCallBack = (_ result: Int) -> ()
-
-class KMStampCreaterWindowController: NSWindowController, NSTextViewDelegate{
-    private var stamp: KMAnnotationStamp?
-    var closeCallBack: closeStampCreaterWindowCallBack?
-    @IBOutlet private var preView: NSImageView!
-    
-    @IBOutlet private var cancelButton: NSButton!
-    @IBOutlet private var addButton: NSButton!
-    
-    @IBOutlet private var textView: NSTextView!
-    @IBOutlet private var dateButton: NSButton!
-    @IBOutlet private var timeButton: NSButton!
-    
-    @IBOutlet private var color0Button: NSButton!
-    @IBOutlet private var color1Button: NSButton!
-    @IBOutlet private var color2Button: NSButton!
-    @IBOutlet private var color3Button: NSButton!
-    @IBOutlet private var color4Button: NSButton!
-    
-    @IBOutlet private var color1LeftButton: NSButton!
-    @IBOutlet private var color2LeftButton: NSButton!
-    @IBOutlet private var color3LeftButton: NSButton!
-    
-    @IBOutlet private var color1RightButton: NSButton!
-    @IBOutlet private var color2RightButton: NSButton!
-    @IBOutlet private var color3RightButton: NSButton!
-    
-    @IBOutlet private var boardView: NSView!
-    
-    @IBOutlet private var previewLabel: NSTextField!
-    @IBOutlet private var textLabel: NSTextField!
-    @IBOutlet private var colorLabel: NSTextField!
-    @IBOutlet private var dateLabel: NSTextField!
-    @IBOutlet private var timeLabel: NSTextField!
-    
-    private var handler: ((Int) -> Void)!
-
-    convenience init(){
-        self.init(windowNibName: "KMStampCreaterWindowController")
-    }
-    
-    private func changeBoardViewWithBounds(_ frame: CGRect) {
-        if boardView == nil {
-            boardView = NSView()
-            boardView.wantsLayer = true
-            boardView.layer?.borderWidth = 1.6
-            let color = NSColor(srgbRed: 53.0/255.0, green: 142.0/255.0, blue: 230.0/255.0, alpha: 0.8)
-            boardView.layer?.borderColor = color.cgColor
-            boardView.layer?.cornerRadius = 6
-            window?.contentView?.addSubview(boardView)
-        }
-        boardView.frame = CGRect(x: frame.origin.x - 4, y: frame.origin.y - 4, width: frame.size.width + 8, height: frame.size.height + 8)
-    }
-    
-    override func windowDidLoad() {
-        super.windowDidLoad()
-        self.previewLabel.textColor = KMAppearance.KM_242424_Color75()
-        self.textLabel.textColor = KMAppearance.KM_242424_Color75()
-        self.colorLabel.textColor = KMAppearance.KM_242424_Color75()
-        self.previewLabel.stringValue = NSLocalizedString("Preview", comment: "")
-        self.textLabel.stringValue = NSLocalizedString("Text", comment: "")
-        self.colorLabel.stringValue = NSLocalizedString("Color", comment: "")
-        self.dateLabel.stringValue = String(format: "%@ (YYYY-MM-DD)", NSLocalizedString("Date", comment: ""))
-        self.timeLabel.stringValue = String(format: "%@ (HH:MM:SS)", NSLocalizedString("Time", comment: ""))
-        stamp = KMAnnotationStamp(withBounds: preView.bounds)
-        stamp?.setCustomStampString("StampText", dateString: "")
-        changeBoardViewWithBounds(color0Button.frame)
-        stamp?.stampColor = .Normal
-        self.cancelButton.title = NSLocalizedString("Cancel", comment: "")
-        self.addButton.title = NSLocalizedString("Add", comment: "")
-        self.cancelButton.tag = 0;
-        self.addButton.tag    = 1;
-        let tStamp = KMAnnotationStamp(withBounds: NSMakeRect(0, 0, 60, 60))
-        tStamp.setCustomStampString("A", dateString: "")
-        tStamp.stampColor = .Normal
-        self.color0Button.image = tStamp.getBtnStampImage()
-        tStamp.stampColor = .BlackColor
-        self.color1Button.image = tStamp.getBtnStampImage()
-        tStamp.stampColor = .GreenColor
-        self.color2Button.image = tStamp.getBtnStampImage()
-        tStamp.stampColor = .RedColor
-        self.color3Button.image = tStamp.getBtnStampImage()
-        tStamp.stampColor = .BlueColor
-        self.color4Button.image = tStamp.getBtnStampImage()
-        self.color1LeftButton.image = NSImage(named: "a_2a.png")
-        self.color2LeftButton.image = NSImage(named: "a_3a.png")
-        self.color3LeftButton.image = NSImage(named: "a_4a.png")
-        self.color1RightButton.image = NSImage(named: "a_2b.png")
-        self.color2RightButton.image = NSImage(named: "a_3b.png")
-        self.color3RightButton.image = NSImage(named: "a_4b.png")
-        self.textView.delegate = self
-        self.textView.string = "StampText"
-        self.preView?.image = self.stamp?.stampPreviewImage()
-        self.dateButton.state = .off
-        self.timeButton.state = .off
-    }
-    
-    private func changeBoardView(bounds: CGRect) {
-        if boardView == nil {
-            boardView = NSView()
-            boardView.wantsLayer = true
-            boardView.layer?.borderWidth = 1.6
-            boardView.layer?.borderColor = NSColor(red: 53.0/255.0, green: 142.0/255.0, blue: 230.0/255.0, alpha: 0.8).cgColor
-            boardView.layer?.cornerRadius = 6
-            self.window?.contentView?.addSubview(boardView)
-        }
-        boardView.frame = NSRect(x: bounds.origin.x - 4, y: bounds.origin.y - 4, width: bounds.size.width + 8, height: bounds.size.height + 8)
-    }
-    
-    @IBAction private func colorButton_Click(_ sender: NSButton) {
-        changeBoardView(bounds: sender.frame)
-        self.stamp?.bounds = self.preView.bounds
-        switch sender.tag {
-        case 0:
-            self.stamp?.stampColor = .BlackColor
-        case 1:
-            self.stamp?.stampColor = .GreenColor
-        case 2:
-            self.stamp?.stampColor = .RedColor
-        case 3:
-            self.stamp?.stampColor = .BlueColor
-        case 4:
-            self.stamp?.stampColor = .Normal
-        default:
-            break
-        }
-        self.preView.image = self.stamp?.stampPreviewImage()
-    }
-    
-    @IBAction private func colorLeftButton_Click(_ sender: NSButton) {
-        self.stamp?.bounds = self.preView.bounds
-        changeBoardView(bounds: sender.frame)
-        switch sender.tag {
-        case 0:
-            self.stamp?.stampColor = .LeftStampGreenColor
-        case 1:
-            self.stamp?.stampColor = .LeftStampRedColor
-        case 2:
-            self.stamp?.stampColor = .LeftStampBlueColor
-        default:
-            break
-        }
-        self.preView.image = self.stamp?.stampPreviewImage()
-    }
-    
-    @IBAction private func colorRightButton_Click(_ sender: NSButton) {
-        self.stamp?.bounds = self.preView.bounds
-        changeBoardView(bounds: sender.frame)
-        switch sender.tag {
-        case 0:
-            self.stamp?.stampColor = .RightStampGreenColor
-        case 1:
-            self.stamp?.stampColor = .RightStampRedColor
-        case 2:
-            self.stamp?.stampColor = .RightStampBlueColor
-        default:
-            break
-        }
-        self.preView.image = self.stamp?.stampPreviewImage()
-    }
-    
-    @IBAction private func dateButton_Click(_ sender: NSButton) {
-        var dateString: String = ""
-        if dateButton.state == .on {
-            if timeButton.state == .on {
-                dateString = DateFormatter.localizedString(from: Date(), dateStyle: .short, timeStyle: .short)
-            } else {
-                dateString = DateFormatter.localizedString(from: Date(), dateStyle: .short, timeStyle: .none)
-            }
-        } else {
-            if timeButton.state == .on {
-                dateString = DateFormatter.localizedString(from: Date(), dateStyle: .none, timeStyle: .medium)
-            }
-        }
-        self.stamp?.bounds = self.preView.bounds
-        self.stamp?.setCustomStampString(self.stamp?.contentStr ?? "", dateString: dateString)
-        self.preView.image = self.stamp?.stampPreviewImage()
-    }
-    
-    @IBAction private func timeButton_Click(_ sender: NSButton) {
-        var dateString: String = ""
-        if dateButton.state == .on {
-            if timeButton.state == .on {
-                dateString = DateFormatter.localizedString(from: Date(), dateStyle: .short, timeStyle: .short)
-            } else {
-                dateString = DateFormatter.localizedString(from: Date(), dateStyle: .short, timeStyle: .none)
-            }
-        } else {
-            if timeButton.state == .on {
-                dateString = DateFormatter.localizedString(from: Date(), dateStyle: .none, timeStyle: .medium)
-            }
-        }
-        self.stamp?.bounds = self.preView.bounds
-        self.stamp?.setCustomStampString(self.stamp?.contentStr ?? "", dateString: dateString)
-        self.preView.image = self.stamp?.stampPreviewImage()
-    }
-    
-    func textViewDidChangeSelection(_ notification: Notification) {
-        let textView = notification.object as! NSTextView
-        if textView == self.textView {
-            var string = textView.string.count > 0 ? textView.string : ""
-            string = string.replacingOccurrences(of: "\n", with: "")
-            self.stamp?.bounds = self.preView.bounds
-            self.stamp?.setCustomStampString(string, dateString: self.stamp?.dateString ?? "")
-            self.preView.image = self.stamp?.stampPreviewImage()
-        }
-    }
-    
-    // MARK: Show Methods
- 
-    @IBAction private func dismissSheet(_ sender: NSButton) {
-        if #available(macOS 10.13, *) {
-            if sender == self.addButton {
-                if ((stamp?.contentStr.count)! < 1) && ((stamp?.dateString.count)! < 1) {
-                    return
-                }
-                let stampStyle: CPDFStampStyle = CPDFStampStyle(rawValue: (stamp?.stampStyle(stampColor: KMAnnotationStampColorType(rawValue: (stamp?.stampColor)!.rawValue) ?? .RedColor))!.rawValue) ?? .white
-                let stampShape: CPDFStampShape = CPDFStampShape(rawValue: (stamp?.stampShape(stampColor: KMAnnotationStampColorType(rawValue: (stamp?.stampColor)!.rawValue) ?? .RedColor))!.rawValue) ?? .rectangle
-                KMStampManager.defaultManager.addStamp(withString: self.stamp?.contentStr, categoryString: .text, nameString: nil, dateString: self.stamp?.dateString, needExchangeFontSize: false, color: stampStyle, shape: stampShape, date: nil, time: nil)
-                NSApp.endSheet(window!, returnCode: 1)
-            } else {
-                NSApp.endSheet(window!, returnCode: 0)
-            }
-        } else {
-            NSApp.endSheet(window!)
-        }
-        window!.orderOut(self)
-    }
-    
-    @objc private func didEndSheet(_ sheet: NSWindow?, returnCode: Int, contextInfo: UnsafeMutableRawPointer?) {
-        if contextInfo != nil && self.handler != nil {
-            self.handler!(returnCode)
-        }
-    }
-    
-    func beginSheetModal(for window: NSWindow?, completionHandler handler: ((Int) -> Void)?) {
-        if window != nil {
-            window!.beginSheet(self.window!) { ModalResponse in
-                self.handler?(ModalResponse.rawValue)
-            }
-        }
-        self.handler = handler
-    }
-
-}
-

+ 0 - 398
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/Controller/KMStampCreaterWindowController.xib

@@ -1,398 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
-        <capability name="Named colors" minToolsVersion="9.0"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMStampCreaterWindowController" customModule="PDF_Reader_Pro" customModuleProvider="target">
-            <connections>
-                <outlet property="addButton" destination="czk-vd-nJU" id="dD6-ef-74Q"/>
-                <outlet property="cancelButton" destination="cc7-qe-7rf" id="Zq8-Wk-veV"/>
-                <outlet property="color0Button" destination="mhD-je-Wpr" id="pED-3b-foy"/>
-                <outlet property="color1Button" destination="3XS-gx-9Pd" id="gXI-HI-o6M"/>
-                <outlet property="color1LeftButton" destination="ykN-Gl-Slf" id="uho-86-Qwa"/>
-                <outlet property="color1RightButton" destination="Ue0-ds-srA" id="PG5-7R-ta1"/>
-                <outlet property="color2Button" destination="4ag-lg-Hvp" id="sJq-Zq-ivh"/>
-                <outlet property="color2LeftButton" destination="11t-kW-AKk" id="d7X-ys-a9w"/>
-                <outlet property="color2RightButton" destination="Xu6-SU-AFZ" id="M0I-31-eM4"/>
-                <outlet property="color3Button" destination="toN-6F-xfS" id="AHM-FY-2RW"/>
-                <outlet property="color3LeftButton" destination="mu4-WI-xrj" id="Z2s-5S-9BS"/>
-                <outlet property="color3RightButton" destination="JBb-Vu-taz" id="bJc-He-dGZ"/>
-                <outlet property="color4Button" destination="ZKP-zJ-rxv" id="USV-CA-9zk"/>
-                <outlet property="colorLabel" destination="s0J-ky-cRs" id="qVs-Px-GcF"/>
-                <outlet property="dateButton" destination="G9X-rZ-vRw" id="dsv-Up-4gs"/>
-                <outlet property="dateLabel" destination="VBb-Mo-dDs" id="bAr-MY-3B3"/>
-                <outlet property="preView" destination="eIm-ZB-989" id="Qjt-oL-Dfc"/>
-                <outlet property="previewLabel" destination="7mY-52-VcQ" id="rVj-mS-Iq2"/>
-                <outlet property="textLabel" destination="Ane-9X-3O6" id="WO4-0T-Jbx"/>
-                <outlet property="textView" destination="HMq-og-Atc" id="5tI-Vt-m89"/>
-                <outlet property="timeButton" destination="wwu-TG-1ev" id="CRz-Yi-csW"/>
-                <outlet property="timeLabel" destination="sBk-t1-WVr" id="0CH-c1-bli"/>
-                <outlet property="window" destination="F0z-JX-Cv5" id="gIp-Ho-8D9"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" id="F0z-JX-Cv5">
-            <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
-            <windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
-            <rect key="contentRect" x="196" y="240" width="384" height="478"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="1512" height="944"/>
-            <view key="contentView" id="se5-gp-TjO">
-                <rect key="frame" x="0.0" y="0.0" width="384" height="478"/>
-                <autoresizingMask key="autoresizingMask"/>
-                <subviews>
-                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7mY-52-VcQ">
-                        <rect key="frame" x="38" y="442" width="52" height="18"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="18" id="zB0-0R-Q8b"/>
-                        </constraints>
-                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Preview" id="vkL-tE-Bl3">
-                            <font key="font" metaFont="system"/>
-                            <color key="textColor" name="disabledControlTextColor" catalog="System" colorSpace="catalog"/>
-                            <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                        </textFieldCell>
-                    </textField>
-                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ane-9X-3O6">
-                        <rect key="frame" x="38" y="320" width="30" height="16"/>
-                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Text" id="p2f-Xk-ibG">
-                            <font key="font" metaFont="system"/>
-                            <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                            <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                        </textFieldCell>
-                    </textField>
-                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="s0J-ky-cRs">
-                        <rect key="frame" x="38" y="264" width="37" height="16"/>
-                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Color" id="het-hf-t3d">
-                            <font key="font" metaFont="system"/>
-                            <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                            <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                        </textFieldCell>
-                    </textField>
-                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="VBb-Mo-dDs">
-                        <rect key="frame" x="56" y="117" width="33" height="18"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="18" id="UrG-cb-P1Q"/>
-                        </constraints>
-                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Date" id="0sc-qT-4Rv">
-                            <font key="font" metaFont="system"/>
-                            <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                            <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                        </textFieldCell>
-                    </textField>
-                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="sBk-t1-WVr">
-                        <rect key="frame" x="56" y="88" width="34" height="18"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="18" id="THB-Ld-ZFr"/>
-                        </constraints>
-                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Time" id="PJ9-6q-VWR">
-                            <font key="font" metaFont="system"/>
-                            <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                            <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                        </textFieldCell>
-                    </textField>
-                    <button translatesAutoresizingMaskIntoConstraints="NO" id="3XS-gx-9Pd">
-                        <rect key="frame" x="135" y="242" width="36" height="36"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="6qF-31-SSz">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="36" id="SAa-IS-Hrj"/>
-                            <constraint firstAttribute="height" constant="36" id="YbS-Nq-Rlz"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorButton_Click:" target="-2" id="BID-Kh-X36"/>
-                        </connections>
-                    </button>
-                    <button tag="2" translatesAutoresizingMaskIntoConstraints="NO" id="toN-6F-xfS">
-                        <rect key="frame" x="227" y="243" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="J97-AE-qqC">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="Bpf-ow-alP"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorButton_Click:" target="-2" id="gt8-cY-5f4"/>
-                        </connections>
-                    </button>
-                    <button tag="3" translatesAutoresizingMaskIntoConstraints="NO" id="ZKP-zJ-rxv">
-                        <rect key="frame" x="273" y="243" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="buU-Rw-PkK">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="KYM-dO-sjP"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorButton_Click:" target="-2" id="vhQ-Z8-adx"/>
-                        </connections>
-                    </button>
-                    <button translatesAutoresizingMaskIntoConstraints="NO" id="G9X-rZ-vRw">
-                        <rect key="frame" x="38" y="117" width="18" height="18"/>
-                        <buttonCell key="cell" type="check" title="Button" bezelStyle="regularSquare" imagePosition="only" alignment="left" inset="2" id="q51-g0-lQX">
-                            <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <connections>
-                            <action selector="dateButton_Click:" target="-2" id="iZs-cW-Ymt"/>
-                        </connections>
-                    </button>
-                    <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="eIm-ZB-989">
-                        <rect key="frame" x="23" y="358" width="341" height="84"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="84" id="nW0-zW-a9B"/>
-                        </constraints>
-                        <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="v42-hZ-XuY"/>
-                    </imageView>
-                    <button tag="1" translatesAutoresizingMaskIntoConstraints="NO" id="4ag-lg-Hvp">
-                        <rect key="frame" x="181" y="243" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="ayb-28-XuA">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="KjO-q1-fyp"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorButton_Click:" target="-2" id="mcP-FA-KgE"/>
-                        </connections>
-                    </button>
-                    <button translatesAutoresizingMaskIntoConstraints="NO" id="ykN-Gl-Slf">
-                        <rect key="frame" x="181" y="198" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="A7A-eh-j70">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="rkE-C9-GCn"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorLeftButton_Click:" target="-2" id="EmG-fW-HKS"/>
-                        </connections>
-                    </button>
-                    <button translatesAutoresizingMaskIntoConstraints="NO" id="Ue0-ds-srA">
-                        <rect key="frame" x="181" y="153" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="iQ7-Xp-6bs">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="bcC-eI-VEu"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorRightButton_Click:" target="-2" id="itU-Mt-O2x"/>
-                        </connections>
-                    </button>
-                    <button tag="1" translatesAutoresizingMaskIntoConstraints="NO" id="11t-kW-AKk">
-                        <rect key="frame" x="227" y="198" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="Zsb-OI-8i5">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="8yZ-SB-ZaC"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorLeftButton_Click:" target="-2" id="nST-2J-D0C"/>
-                        </connections>
-                    </button>
-                    <button tag="2" translatesAutoresizingMaskIntoConstraints="NO" id="mu4-WI-xrj">
-                        <rect key="frame" x="273" y="198" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="BV6-8z-92c">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="CIa-JL-3HY"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorLeftButton_Click:" target="-2" id="jJd-6P-ubo"/>
-                        </connections>
-                    </button>
-                    <button tag="2" translatesAutoresizingMaskIntoConstraints="NO" id="JBb-Vu-taz">
-                        <rect key="frame" x="273" y="153" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="Cd5-NP-1f3">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="IBu-Zv-fqt"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorRightButton_Click:" target="-2" id="EYH-Ld-UIB"/>
-                        </connections>
-                    </button>
-                    <button tag="1" translatesAutoresizingMaskIntoConstraints="NO" id="Xu6-SU-AFZ">
-                        <rect key="frame" x="227" y="153" width="36" height="35"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="scx-qw-1S7">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="35" id="mz8-dk-Vrd"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorRightButton_Click:" target="-2" id="Q2L-FZ-Xnx"/>
-                        </connections>
-                    </button>
-                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="czk-vd-nJU">
-                        <rect key="frame" x="318" y="21" width="59" height="32"/>
-                        <buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="GPE-IB-e1L">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                            <string key="keyEquivalent" base64-UTF8="YES">
-DQ
-</string>
-                        </buttonCell>
-                        <connections>
-                            <action selector="dismissSheet:" target="-2" id="Uwe-Cs-bx2"/>
-                        </connections>
-                    </button>
-                    <button translatesAutoresizingMaskIntoConstraints="NO" id="wwu-TG-1ev">
-                        <rect key="frame" x="38" y="88" width="18" height="18"/>
-                        <buttonCell key="cell" type="check" title="Button" bezelStyle="regularSquare" imagePosition="only" alignment="left" inset="2" id="mce-D1-o23">
-                            <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <connections>
-                            <action selector="timeButton_Click:" target="-2" id="mnj-E4-FDT"/>
-                        </connections>
-                    </button>
-                    <button tag="4" translatesAutoresizingMaskIntoConstraints="NO" id="mhD-je-Wpr">
-                        <rect key="frame" x="80" y="240" width="40" height="40"/>
-                        <buttonCell key="cell" type="bevel" title="Button" bezelStyle="rounded" alignment="center" imageScaling="proportionallyDown" inset="2" id="6kW-7y-0EK">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                        </buttonCell>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="40" id="BA0-Dq-aXS"/>
-                            <constraint firstAttribute="width" constant="40" id="TmW-9D-FWw"/>
-                        </constraints>
-                        <connections>
-                            <action selector="colorButton_Click:" target="-2" id="zPG-q3-btw"/>
-                        </connections>
-                    </button>
-                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="cc7-qe-7rf">
-                        <rect key="frame" x="248" y="21" width="76" height="32"/>
-                        <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="5oW-x7-c9T">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" metaFont="system"/>
-                            <string key="keyEquivalent" base64-UTF8="YES">
-Gw
-</string>
-                        </buttonCell>
-                        <connections>
-                            <action selector="dismissSheet:" target="-2" id="QZF-lv-gT4"/>
-                        </connections>
-                    </button>
-                    <scrollView borderType="none" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" translatesAutoresizingMaskIntoConstraints="NO" id="krz-e6-2L8">
-                        <rect key="frame" x="80" y="298" width="264" height="40"/>
-                        <clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="teZ-mW-hoZ">
-                            <rect key="frame" x="0.0" y="0.0" width="264" height="40"/>
-                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                            <subviews>
-                                <textView importsGraphics="NO" richText="NO" verticallyResizable="YES" spellingCorrection="YES" smartInsertDelete="YES" id="HMq-og-Atc">
-                                    <rect key="frame" x="0.0" y="0.0" width="264" height="40"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <color key="textColor" name="KM_242424_Color"/>
-                                    <color key="backgroundColor" name="KM_FFFFFF_ColorDarkChanged08"/>
-                                    <size key="minSize" width="264" height="40"/>
-                                    <size key="maxSize" width="475" height="10000000"/>
-                                    <color key="insertionPointColor" name="textColor" catalog="System" colorSpace="catalog"/>
-                                </textView>
-                            </subviews>
-                            <color key="backgroundColor" name="KM_FFFFFF_ColorDarkChanged08"/>
-                        </clipView>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="40" id="9vv-gz-oHA"/>
-                        </constraints>
-                        <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="miB-jI-sSy">
-                            <rect key="frame" x="-100" y="-100" width="225" height="15"/>
-                            <autoresizingMask key="autoresizingMask"/>
-                        </scroller>
-                        <scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="oTf-fu-ybi">
-                            <rect key="frame" x="248" y="0.0" width="16" height="40"/>
-                            <autoresizingMask key="autoresizingMask"/>
-                        </scroller>
-                    </scrollView>
-                </subviews>
-                <constraints>
-                    <constraint firstItem="3XS-gx-9Pd" firstAttribute="leading" secondItem="mhD-je-Wpr" secondAttribute="trailing" constant="15" id="0SQ-VY-Aob"/>
-                    <constraint firstItem="Ane-9X-3O6" firstAttribute="leading" secondItem="7mY-52-VcQ" secondAttribute="leading" id="1a6-t7-3fD"/>
-                    <constraint firstItem="VBb-Mo-dDs" firstAttribute="top" secondItem="Ue0-ds-srA" secondAttribute="bottom" constant="18" id="26R-ml-5DA"/>
-                    <constraint firstItem="VBb-Mo-dDs" firstAttribute="leading" secondItem="G9X-rZ-vRw" secondAttribute="trailing" constant="4" id="2HM-lO-omd"/>
-                    <constraint firstAttribute="trailing" secondItem="krz-e6-2L8" secondAttribute="trailing" constant="40" id="2eI-Fa-2EV"/>
-                    <constraint firstItem="toN-6F-xfS" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="7oZ-BN-Ouh"/>
-                    <constraint firstItem="wwu-TG-1ev" firstAttribute="centerX" secondItem="G9X-rZ-vRw" secondAttribute="centerX" id="9a1-8p-UZ6"/>
-                    <constraint firstItem="3XS-gx-9Pd" firstAttribute="centerY" secondItem="mhD-je-Wpr" secondAttribute="centerY" id="AhA-Cb-yo7"/>
-                    <constraint firstItem="krz-e6-2L8" firstAttribute="leading" secondItem="Ane-9X-3O6" secondAttribute="trailing" constant="14" id="BtX-Ku-eNh"/>
-                    <constraint firstItem="eIm-ZB-989" firstAttribute="top" secondItem="7mY-52-VcQ" secondAttribute="bottom" id="DJc-DJ-r5X"/>
-                    <constraint firstItem="ykN-Gl-Slf" firstAttribute="leading" secondItem="4ag-lg-Hvp" secondAttribute="leading" id="Dze-kT-i4M"/>
-                    <constraint firstItem="sBk-t1-WVr" firstAttribute="leading" secondItem="wwu-TG-1ev" secondAttribute="trailing" constant="4" id="G3d-0K-NBC"/>
-                    <constraint firstItem="cc7-qe-7rf" firstAttribute="top" secondItem="czk-vd-nJU" secondAttribute="top" id="Icj-Ky-cXO"/>
-                    <constraint firstItem="czk-vd-nJU" firstAttribute="leading" secondItem="cc7-qe-7rf" secondAttribute="trailing" constant="8" id="Io0-Jf-tBO"/>
-                    <constraint firstAttribute="trailing" secondItem="czk-vd-nJU" secondAttribute="trailing" constant="14" id="Itg-PQ-xtb"/>
-                    <constraint firstItem="Xu6-SU-AFZ" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="KVh-Ne-GA6"/>
-                    <constraint firstItem="Ue0-ds-srA" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="LsR-iQ-zyB"/>
-                    <constraint firstItem="ZKP-zJ-rxv" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="Onp-qn-ByF"/>
-                    <constraint firstItem="ykN-Gl-Slf" firstAttribute="top" secondItem="4ag-lg-Hvp" secondAttribute="bottom" constant="10" id="Q5i-fA-1Og"/>
-                    <constraint firstItem="ykN-Gl-Slf" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="QFd-Ys-EvC"/>
-                    <constraint firstItem="4ag-lg-Hvp" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="Qf0-Do-iea"/>
-                    <constraint firstItem="ZKP-zJ-rxv" firstAttribute="top" secondItem="3XS-gx-9Pd" secondAttribute="top" id="RMQ-gf-8EE"/>
-                    <constraint firstItem="11t-kW-AKk" firstAttribute="leading" secondItem="toN-6F-xfS" secondAttribute="leading" id="S8b-6M-Bao"/>
-                    <constraint firstItem="Ue0-ds-srA" firstAttribute="leading" secondItem="4ag-lg-Hvp" secondAttribute="leading" id="SdI-7L-scB"/>
-                    <constraint firstItem="4ag-lg-Hvp" firstAttribute="top" secondItem="3XS-gx-9Pd" secondAttribute="top" id="Svw-U4-JZ2"/>
-                    <constraint firstItem="s0J-ky-cRs" firstAttribute="leading" secondItem="7mY-52-VcQ" secondAttribute="leading" id="TCQ-kO-GGO"/>
-                    <constraint firstItem="Ue0-ds-srA" firstAttribute="top" secondItem="ykN-Gl-Slf" secondAttribute="bottom" constant="10" id="UXa-Gm-BO5"/>
-                    <constraint firstItem="G9X-rZ-vRw" firstAttribute="centerY" secondItem="VBb-Mo-dDs" secondAttribute="centerY" id="WN9-Wo-3Ez"/>
-                    <constraint firstItem="toN-6F-xfS" firstAttribute="top" secondItem="3XS-gx-9Pd" secondAttribute="top" id="XYp-rt-H0h"/>
-                    <constraint firstItem="mu4-WI-xrj" firstAttribute="top" secondItem="ykN-Gl-Slf" secondAttribute="top" id="Xrn-0F-EJP"/>
-                    <constraint firstItem="JBb-Vu-taz" firstAttribute="leading" secondItem="ZKP-zJ-rxv" secondAttribute="leading" id="Z2s-SJ-CgX"/>
-                    <constraint firstItem="sBk-t1-WVr" firstAttribute="top" secondItem="VBb-Mo-dDs" secondAttribute="bottom" constant="11" id="asr-zC-Kkr"/>
-                    <constraint firstItem="mhD-je-Wpr" firstAttribute="leading" secondItem="krz-e6-2L8" secondAttribute="leading" id="b3Q-Kw-g39"/>
-                    <constraint firstItem="mu4-WI-xrj" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="bM2-9d-fdq"/>
-                    <constraint firstItem="4ag-lg-Hvp" firstAttribute="leading" secondItem="3XS-gx-9Pd" secondAttribute="trailing" constant="10" id="bZa-ej-qIh"/>
-                    <constraint firstItem="krz-e6-2L8" firstAttribute="top" secondItem="eIm-ZB-989" secondAttribute="bottom" constant="20" id="cBl-q8-gUQ"/>
-                    <constraint firstItem="11t-kW-AKk" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="cCa-Bo-Y8z"/>
-                    <constraint firstItem="Xu6-SU-AFZ" firstAttribute="leading" secondItem="toN-6F-xfS" secondAttribute="leading" id="cfb-2A-bAR"/>
-                    <constraint firstItem="toN-6F-xfS" firstAttribute="leading" secondItem="4ag-lg-Hvp" secondAttribute="trailing" constant="10" id="dN9-za-HeF"/>
-                    <constraint firstItem="7mY-52-VcQ" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="40" id="eyO-BC-eqX"/>
-                    <constraint firstItem="11t-kW-AKk" firstAttribute="top" secondItem="ykN-Gl-Slf" secondAttribute="top" id="frz-UK-8CP"/>
-                    <constraint firstItem="mhD-je-Wpr" firstAttribute="top" secondItem="krz-e6-2L8" secondAttribute="bottom" constant="18" id="gqZ-Jy-CmO"/>
-                    <constraint firstItem="G9X-rZ-vRw" firstAttribute="leading" secondItem="s0J-ky-cRs" secondAttribute="leading" id="hhB-Fn-OEt"/>
-                    <constraint firstItem="JBb-Vu-taz" firstAttribute="top" secondItem="Ue0-ds-srA" secondAttribute="top" id="i4w-xh-gJk"/>
-                    <constraint firstItem="wwu-TG-1ev" firstAttribute="centerY" secondItem="sBk-t1-WVr" secondAttribute="centerY" id="k98-dQ-skE"/>
-                    <constraint firstItem="czk-vd-nJU" firstAttribute="top" secondItem="sBk-t1-WVr" secondAttribute="bottom" constant="40" id="lwV-Nb-h15"/>
-                    <constraint firstItem="s0J-ky-cRs" firstAttribute="top" secondItem="Ane-9X-3O6" secondAttribute="bottom" constant="40" id="lzq-JQ-Vpu"/>
-                    <constraint firstItem="eIm-ZB-989" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="23" id="oC2-OQ-QIe"/>
-                    <constraint firstAttribute="trailing" secondItem="eIm-ZB-989" secondAttribute="trailing" constant="20" id="prl-vS-psb"/>
-                    <constraint firstItem="JBb-Vu-taz" firstAttribute="width" secondItem="3XS-gx-9Pd" secondAttribute="width" id="rxT-zU-oeu"/>
-                    <constraint firstItem="Xu6-SU-AFZ" firstAttribute="top" secondItem="Ue0-ds-srA" secondAttribute="top" id="suv-ka-D2k"/>
-                    <constraint firstItem="7mY-52-VcQ" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="18" id="tPU-fz-Bv1"/>
-                    <constraint firstItem="ZKP-zJ-rxv" firstAttribute="leading" secondItem="toN-6F-xfS" secondAttribute="trailing" constant="10" id="v4F-tL-bVe"/>
-                    <constraint firstItem="Ane-9X-3O6" firstAttribute="top" secondItem="eIm-ZB-989" secondAttribute="bottom" constant="22" id="weK-uN-9WJ"/>
-                    <constraint firstItem="mu4-WI-xrj" firstAttribute="leading" secondItem="ZKP-zJ-rxv" secondAttribute="leading" id="xVI-Q9-0Se"/>
-                </constraints>
-            </view>
-            <connections>
-                <outlet property="delegate" destination="-2" id="0bl-1N-AYu"/>
-            </connections>
-            <point key="canvasLocation" x="299" y="273"/>
-        </window>
-    </objects>
-    <resources>
-        <namedColor name="KM_242424_Color">
-            <color red="0.14117647058823529" green="0.14117647058823529" blue="0.14117647058823529" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-        </namedColor>
-        <namedColor name="KM_FFFFFF_ColorDarkChanged08">
-            <color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-        </namedColor>
-    </resources>
-</document>

File diff suppressed because it is too large
+ 0 - 1467
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMAnnotationStampViewController.swift


+ 0 - 791
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMAnnotationStampViewController.xib

@@ -1,791 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMAnnotationStampViewController" customModule="PDF_Reader_Pro" customModuleProvider="target">
-            <connections>
-                <outlet property="addButton" destination="XEv-5I-scI" id="f6Z-MG-7Ce"/>
-                <outlet property="annotationBox" destination="IFI-8g-CYh" id="jHE-xx-RTm"/>
-                <outlet property="annotationLabel" destination="UsV-0m-nUC" id="Oab-0U-7aF"/>
-                <outlet property="authorLabel" destination="nfe-06-8Hb" id="ALo-Gj-ukv"/>
-                <outlet property="authorTextField" destination="Cf3-ij-TW3" id="eAp-PG-X9i"/>
-                <outlet property="clickStampView" destination="Aj7-0M-710" id="UoM-Se-ycb"/>
-                <outlet property="contentTextView" destination="lq6-MU-1hZ" id="ZTH-2a-4Xn"/>
-                <outlet property="createScrollView" destination="Qfb-JE-bUl" id="8Zj-ee-ixg"/>
-                <outlet property="createStampTableView" destination="bps-jM-pPg" id="Jqt-MY-BxR"/>
-                <outlet property="createStampView" destination="aVc-V7-FBS" id="Qik-ed-h3Z"/>
-                <outlet property="customBox" destination="9dQ-3R-rf8" id="XJn-V3-O6o"/>
-                <outlet property="customLabel" destination="HfE-48-3lV" id="dEm-G9-Wvs"/>
-                <outlet property="customView" destination="RNY-Tv-xZx" id="74C-xP-buR"/>
-                <outlet property="dateBox" destination="j61-6m-eFB" id="Rwb-4s-XrJ"/>
-                <outlet property="dateComboBox" destination="wtD-Vt-js7" id="tuc-Fu-OG7"/>
-                <outlet property="dateLabel" destination="CiP-Jz-Xdn" id="eUB-SN-HOx"/>
-                <outlet property="dynamicBox" destination="a4J-25-yUn" id="Zez-Eb-z8u"/>
-                <outlet property="dynamicLabel" destination="I93-Ww-ckj" id="2Aw-Rb-Huk"/>
-                <outlet property="dynamicView" destination="3V9-UO-YC8" id="eWw-86-SyM"/>
-                <outlet property="emptyImageView" destination="1zh-o3-BQF" id="RC0-6V-JXf"/>
-                <outlet property="emptyLabel" destination="VYn-hy-KP4" id="8YG-6q-omp"/>
-                <outlet property="emptyView" destination="Skb-rC-s7k" id="uSL-kC-dkt"/>
-                <outlet property="footBox" destination="cRx-Wh-6fg" id="IwR-k8-h4u"/>
-                <outlet property="footBoxHeightLayoutConstraint" destination="Vg0-Ig-vmZ" id="94G-if-KgZ"/>
-                <outlet property="imageStampButton" destination="zG5-2e-zz5" id="g4B-DR-iwN"/>
-                <outlet property="leftImageView" destination="knm-jT-kZT" id="Loq-E6-YBb"/>
-                <outlet property="leftRotateBox" destination="Nf2-e7-zm4" id="hRB-pr-P6J"/>
-                <outlet property="leftRotateImage" destination="xeG-af-M7X" id="NWO-nB-Gck"/>
-                <outlet property="mainViewBox" destination="dv7-QJ-FuP" id="zpz-Ic-XgR"/>
-                <outlet property="noCustomStampLabel" destination="Mlh-u9-cE0" id="lrL-mT-quP"/>
-                <outlet property="opacityBox" destination="22t-Qb-mZk" id="DbL-2a-VT3"/>
-                <outlet property="opacityBoxTopLayoutConstraint" destination="qJi-l1-DIj" id="enu-DV-Lhf"/>
-                <outlet property="opacityComboBox" destination="clF-X8-CfE" id="5kx-g5-TPS"/>
-                <outlet property="opacityLabel" destination="Dl7-N2-sZY" id="8yP-fq-tNm"/>
-                <outlet property="opacitySlider" destination="cXF-Rh-krb" id="NK2-zh-GAx"/>
-                <outlet property="rightImageView" destination="0Vm-xD-dRM" id="5Um-VN-9iz"/>
-                <outlet property="rightRotateBox" destination="6Vm-3i-iSJ" id="woE-Qt-3Tp"/>
-                <outlet property="rightRotateImage" destination="awq-J6-Rn6" id="yqj-yx-4DY"/>
-                <outlet property="rotateBox" destination="JXe-4Q-gCs" id="r72-cV-Aea"/>
-                <outlet property="rotateLabel" destination="tKZ-fa-8Ft" id="jen-4l-ZjJ"/>
-                <outlet property="sampleBox" destination="boX-w4-4Qf" id="JGZ-TY-Ugq"/>
-                <outlet property="sampleImageView" destination="EEJ-mI-fRi" id="UD9-g6-9Yg"/>
-                <outlet property="selectButton" destination="w8O-ky-GkI" id="fXO-XY-uoC"/>
-                <outlet property="signatureAddView" destination="CpL-4i-FVy" id="QR9-4b-kfj"/>
-                <outlet property="stampTypeTopLayoutConstraint" destination="dqA-pe-XXh" id="P0Q-nD-jQt"/>
-                <outlet property="standardBox" destination="4Ch-5s-yLs" id="C47-pd-NjL"/>
-                <outlet property="standardLabel" destination="0E3-F3-2Pg" id="xt6-tl-hVB"/>
-                <outlet property="tableViewLayoutConstraint" destination="z3z-OO-F8d" id="wjc-Mj-lNJ"/>
-                <outlet property="textStampButton" destination="16J-eB-gZj" id="K77-MS-2b6"/>
-                <outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <customView id="Hz6-mo-xeY">
-            <rect key="frame" x="0.0" y="0.0" width="285" height="599"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-            <subviews>
-                <box boxType="custom" borderWidth="0.0" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="dv7-QJ-FuP">
-                    <rect key="frame" x="0.0" y="0.0" width="285" height="599"/>
-                    <view key="contentView" id="f5L-F3-Hix">
-                        <rect key="frame" x="0.0" y="0.0" width="285" height="599"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                    </view>
-                </box>
-            </subviews>
-            <constraints>
-                <constraint firstItem="dv7-QJ-FuP" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" id="IrL-C6-RNa"/>
-                <constraint firstAttribute="bottom" secondItem="dv7-QJ-FuP" secondAttribute="bottom" id="JQp-fG-CLn"/>
-                <constraint firstAttribute="trailing" secondItem="dv7-QJ-FuP" secondAttribute="trailing" id="n5w-xT-ZVQ"/>
-                <constraint firstItem="dv7-QJ-FuP" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" id="uBR-42-h52"/>
-            </constraints>
-            <point key="canvasLocation" x="-99.5" y="299.5"/>
-        </customView>
-        <customView misplaced="YES" id="aVc-V7-FBS">
-            <rect key="frame" x="0.0" y="0.0" width="237" height="599"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES"/>
-            <subviews>
-                <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="4Ch-5s-yLs" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                    <rect key="frame" x="0.0" y="567" width="78" height="32"/>
-                    <view key="contentView" id="V6X-u1-jNc">
-                        <rect key="frame" x="0.0" y="0.0" width="78" height="32"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="0E3-F3-2Pg">
-                                <rect key="frame" x="37" y="8" width="4" height="16"/>
-                                <textFieldCell key="cell" lineBreakMode="clipping" id="MOs-Eb-Gx1">
-                                    <font key="font" usesAppearanceFont="YES"/>
-                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                    <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                </textFieldCell>
-                            </textField>
-                        </subviews>
-                    </view>
-                    <constraints>
-                        <constraint firstItem="0E3-F3-2Pg" firstAttribute="centerY" secondItem="4Ch-5s-yLs" secondAttribute="centerY" id="7Ci-4w-owX"/>
-                        <constraint firstAttribute="height" constant="32" id="Qp8-hl-UDW"/>
-                        <constraint firstItem="0E3-F3-2Pg" firstAttribute="centerX" secondItem="4Ch-5s-yLs" secondAttribute="centerX" id="h0G-GB-qie"/>
-                    </constraints>
-                </box>
-                <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="9dQ-3R-rf8" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                    <rect key="frame" x="78" y="567" width="78" height="32"/>
-                    <view key="contentView" id="BYe-v1-Pon">
-                        <rect key="frame" x="0.0" y="0.0" width="78" height="32"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="HfE-48-3lV">
-                                <rect key="frame" x="37" y="8" width="4" height="16"/>
-                                <textFieldCell key="cell" lineBreakMode="clipping" id="QTD-ci-jYJ">
-                                    <font key="font" usesAppearanceFont="YES"/>
-                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                    <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                </textFieldCell>
-                            </textField>
-                            <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="knm-jT-kZT">
-                                <rect key="frame" x="0.0" y="4" width="1" height="24"/>
-                                <constraints>
-                                    <constraint firstAttribute="width" constant="1" id="Aph-Ik-jtA"/>
-                                </constraints>
-                                <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="i3V-lV-MzN"/>
-                            </imageView>
-                            <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="0Vm-xD-dRM">
-                                <rect key="frame" x="77" y="4" width="1" height="24"/>
-                                <constraints>
-                                    <constraint firstAttribute="width" constant="1" id="x6A-zp-yGg"/>
-                                </constraints>
-                                <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="rww-46-m63"/>
-                            </imageView>
-                        </subviews>
-                        <constraints>
-                            <constraint firstItem="0Vm-xD-dRM" firstAttribute="top" secondItem="BYe-v1-Pon" secondAttribute="top" constant="4" id="OJu-wR-WYV"/>
-                            <constraint firstAttribute="trailing" secondItem="0Vm-xD-dRM" secondAttribute="trailing" id="Qbg-AY-Vxo"/>
-                            <constraint firstItem="knm-jT-kZT" firstAttribute="top" secondItem="BYe-v1-Pon" secondAttribute="top" constant="4" id="eLx-h7-qkx"/>
-                            <constraint firstItem="knm-jT-kZT" firstAttribute="leading" secondItem="BYe-v1-Pon" secondAttribute="leading" id="xaR-qw-taf"/>
-                            <constraint firstAttribute="bottom" secondItem="0Vm-xD-dRM" secondAttribute="bottom" constant="4" id="yQP-rg-ruW"/>
-                            <constraint firstAttribute="bottom" secondItem="knm-jT-kZT" secondAttribute="bottom" constant="4" id="yqi-Kv-28F"/>
-                        </constraints>
-                    </view>
-                    <constraints>
-                        <constraint firstItem="HfE-48-3lV" firstAttribute="centerX" secondItem="9dQ-3R-rf8" secondAttribute="centerX" id="1Mn-hO-Ufj"/>
-                        <constraint firstItem="HfE-48-3lV" firstAttribute="centerY" secondItem="9dQ-3R-rf8" secondAttribute="centerY" id="JEM-9c-5Yu"/>
-                    </constraints>
-                </box>
-                <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="a4J-25-yUn" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                    <rect key="frame" x="156" y="567" width="78" height="32"/>
-                    <view key="contentView" id="eMa-S7-OOl">
-                        <rect key="frame" x="0.0" y="0.0" width="78" height="32"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="I93-Ww-ckj">
-                                <rect key="frame" x="37" y="8" width="4" height="16"/>
-                                <textFieldCell key="cell" lineBreakMode="clipping" id="dRl-PU-bWG">
-                                    <font key="font" usesAppearanceFont="YES"/>
-                                    <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                    <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                </textFieldCell>
-                            </textField>
-                        </subviews>
-                    </view>
-                    <constraints>
-                        <constraint firstItem="I93-Ww-ckj" firstAttribute="centerX" secondItem="a4J-25-yUn" secondAttribute="centerX" id="Bjw-Ui-ImQ"/>
-                        <constraint firstItem="I93-Ww-ckj" firstAttribute="centerY" secondItem="a4J-25-yUn" secondAttribute="centerY" id="Hjj-NZ-SWF"/>
-                    </constraints>
-                </box>
-                <customView translatesAutoresizingMaskIntoConstraints="NO" id="Skb-rC-s7k">
-                    <rect key="frame" x="0.0" y="60" width="234" height="507"/>
-                    <subviews>
-                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="mfJ-dx-emK">
-                            <rect key="frame" x="0.0" y="142" width="234" height="224"/>
-                            <subviews>
-                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="1zh-o3-BQF">
-                                    <rect key="frame" x="47" y="84" width="140" height="140"/>
-                                    <constraints>
-                                        <constraint firstAttribute="height" constant="140" id="LXf-GC-q6q"/>
-                                        <constraint firstAttribute="width" constant="140" id="k6C-Yv-fq9"/>
-                                    </constraints>
-                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="KMImageNameEmptyStamp" id="Wgu-2B-PFT"/>
-                                </imageView>
-                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="VYn-hy-KP4">
-                                    <rect key="frame" x="15" y="0.0" width="204" height="40"/>
-                                    <constraints>
-                                        <constraint firstAttribute="height" constant="40" id="9pg-4b-Ee9"/>
-                                        <constraint firstAttribute="width" constant="200" id="oEC-88-fQT"/>
-                                    </constraints>
-                                    <textFieldCell key="cell" lineBreakMode="charWrapping" alignment="center" title="Click \&quot;Text Stamp\&quot; button below to create a custom stamp." id="YIS-ja-oEX">
-                                        <font key="font" metaFont="system" size="14"/>
-                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Mlh-u9-cE0">
-                                    <rect key="frame" x="55" y="48" width="124" height="20"/>
-                                    <constraints>
-                                        <constraint firstAttribute="height" constant="20" id="CVU-xa-gXa"/>
-                                    </constraints>
-                                    <textFieldCell key="cell" lineBreakMode="clipping" title="no Custom Stamp" id="LSP-TD-Koa">
-                                        <font key="font" metaFont="systemSemibold" size="14"/>
-                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="1zh-o3-BQF" firstAttribute="top" secondItem="mfJ-dx-emK" secondAttribute="top" id="OPL-Qa-shs"/>
-                                <constraint firstItem="VYn-hy-KP4" firstAttribute="top" secondItem="Mlh-u9-cE0" secondAttribute="bottom" constant="8" id="Vas-kT-7Ov"/>
-                                <constraint firstItem="1zh-o3-BQF" firstAttribute="centerX" secondItem="mfJ-dx-emK" secondAttribute="centerX" id="aM8-V9-Lgo"/>
-                                <constraint firstItem="Mlh-u9-cE0" firstAttribute="top" secondItem="1zh-o3-BQF" secondAttribute="bottom" constant="16" id="dNC-rb-a9w"/>
-                                <constraint firstAttribute="bottom" secondItem="VYn-hy-KP4" secondAttribute="bottom" id="hko-CW-rV8"/>
-                            </constraints>
-                        </customView>
-                    </subviews>
-                    <constraints>
-                        <constraint firstItem="mfJ-dx-emK" firstAttribute="centerY" secondItem="Skb-rC-s7k" secondAttribute="centerY" id="Nri-eR-7AU"/>
-                        <constraint firstItem="Mlh-u9-cE0" firstAttribute="centerX" secondItem="Skb-rC-s7k" secondAttribute="centerX" id="OE4-LK-u9d"/>
-                        <constraint firstItem="mfJ-dx-emK" firstAttribute="centerX" secondItem="Skb-rC-s7k" secondAttribute="centerX" id="OGh-Oc-Kdw"/>
-                        <constraint firstItem="VYn-hy-KP4" firstAttribute="centerX" secondItem="Skb-rC-s7k" secondAttribute="centerX" id="YpW-8w-FZV"/>
-                        <constraint firstItem="mfJ-dx-emK" firstAttribute="leading" secondItem="Skb-rC-s7k" secondAttribute="leading" id="ZFk-IQ-fGN"/>
-                        <constraint firstAttribute="trailing" secondItem="mfJ-dx-emK" secondAttribute="trailing" id="bx7-kO-Be2"/>
-                    </constraints>
-                </customView>
-                <scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="64" horizontalPageScroll="10" verticalLineScroll="64" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qfb-JE-bUl">
-                    <rect key="frame" x="0.0" y="60" width="234" height="507"/>
-                    <clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="QFb-tg-EJh">
-                        <rect key="frame" x="0.0" y="0.0" width="234" height="507"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="fullWidth" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="64" viewBased="YES" id="bps-jM-pPg">
-                                <rect key="frame" x="0.0" y="0.0" width="234" height="507"/>
-                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                <color key="backgroundColor" red="0.14901960784313725" green="0.15686274509803921" blue="0.16862745098039217" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
-                                <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
-                                <tableColumns>
-                                    <tableColumn width="222" minWidth="40" maxWidth="1000" id="pvk-zw-ZOL">
-                                        <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
-                                            <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
-                                            <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
-                                        </tableHeaderCell>
-                                        <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" title="Text Cell" id="Xb2-8x-zJ5">
-                                            <font key="font" metaFont="system"/>
-                                            <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                        </textFieldCell>
-                                        <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
-                                        <prototypeCellViews>
-                                            <tableCellView identifier="KMAnnotationStampTableviewCell" id="Zvl-qd-COf" customClass="KMAnnotationStampTableviewCell" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                                <rect key="frame" x="0.0" y="0.0" width="234" height="63"/>
-                                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                <subviews>
-                                                    <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Qad-jo-qZT">
-                                                        <rect key="frame" x="192" y="25" width="30" height="30"/>
-                                                        <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="KMImageNameUXIconBtnCloseNor" imagePosition="only" alignment="center" state="on" imageScaling="proportionallyDown" inset="2" id="PA9-va-fLK">
-                                                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                            <font key="font" metaFont="system"/>
-                                                        </buttonCell>
-                                                        <constraints>
-                                                            <constraint firstAttribute="width" constant="30" id="e2V-lK-Zwb"/>
-                                                            <constraint firstAttribute="height" constant="30" id="mSl-xH-a5Q"/>
-                                                        </constraints>
-                                                    </button>
-                                                    <button translatesAutoresizingMaskIntoConstraints="NO" id="eTj-uO-pMw">
-                                                        <rect key="frame" x="42" y="5" width="150" height="53"/>
-                                                        <buttonCell key="cell" type="bevel" bezelStyle="regularSquare" imagePosition="only" alignment="center" lineBreakMode="truncatingMiddle" imageScaling="proportionallyUpOrDown" inset="2" id="PUm-n8-CM1">
-                                                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                            <font key="font" metaFont="system"/>
-                                                        </buttonCell>
-                                                    </button>
-                                                </subviews>
-                                                <constraints>
-                                                    <constraint firstItem="eTj-uO-pMw" firstAttribute="top" secondItem="Zvl-qd-COf" secondAttribute="top" constant="5" id="37O-2k-Kgc"/>
-                                                    <constraint firstItem="Qad-jo-qZT" firstAttribute="top" secondItem="Zvl-qd-COf" secondAttribute="top" constant="8" id="WUa-UN-5Sr"/>
-                                                    <constraint firstAttribute="trailing" secondItem="Qad-jo-qZT" secondAttribute="trailing" constant="12" id="a4v-cG-5Pf"/>
-                                                    <constraint firstItem="Qad-jo-qZT" firstAttribute="leading" secondItem="eTj-uO-pMw" secondAttribute="trailing" id="cGV-kD-vr4"/>
-                                                    <constraint firstItem="eTj-uO-pMw" firstAttribute="centerX" secondItem="Zvl-qd-COf" secondAttribute="centerX" id="eeg-Hr-Tdd"/>
-                                                    <constraint firstAttribute="bottom" secondItem="eTj-uO-pMw" secondAttribute="bottom" constant="5" id="hMs-b6-Jdi"/>
-                                                </constraints>
-                                                <connections>
-                                                    <outlet property="closeButton" destination="Qad-jo-qZT" id="TxR-BG-L9e"/>
-                                                    <outlet property="sampleImageButton" destination="eTj-uO-pMw" id="Wzn-50-Mwy"/>
-                                                </connections>
-                                            </tableCellView>
-                                        </prototypeCellViews>
-                                    </tableColumn>
-                                </tableColumns>
-                                <connections>
-                                    <outlet property="dataSource" destination="-2" id="0e6-Ox-Yh2"/>
-                                    <outlet property="delegate" destination="-2" id="kga-0b-FOH"/>
-                                </connections>
-                            </tableView>
-                        </subviews>
-                        <nil key="backgroundColor"/>
-                    </clipView>
-                    <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="FvQ-wX-xpW">
-                        <rect key="frame" x="-100" y="-100" width="238" height="16"/>
-                        <autoresizingMask key="autoresizingMask"/>
-                    </scroller>
-                    <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="iW7-fg-HGa">
-                        <rect key="frame" x="-100" y="-100" width="15" height="102"/>
-                        <autoresizingMask key="autoresizingMask"/>
-                    </scroller>
-                </scrollView>
-                <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="cRx-Wh-6fg">
-                    <rect key="frame" x="0.0" y="0.0" width="234" height="60"/>
-                    <view key="contentView" id="6Av-83-5iE">
-                        <rect key="frame" x="0.0" y="0.0" width="234" height="60"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                    </view>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="60" id="Vg0-Ig-vmZ"/>
-                    </constraints>
-                </box>
-            </subviews>
-            <constraints>
-                <constraint firstAttribute="trailing" secondItem="a4J-25-yUn" secondAttribute="trailing" id="01E-Hy-S0x"/>
-                <constraint firstItem="Qfb-JE-bUl" firstAttribute="top" secondItem="4Ch-5s-yLs" secondAttribute="bottom" id="5Qd-da-4qF"/>
-                <constraint firstItem="cRx-Wh-6fg" firstAttribute="leading" secondItem="aVc-V7-FBS" secondAttribute="leading" id="6aI-DO-c0i"/>
-                <constraint firstItem="a4J-25-yUn" firstAttribute="top" secondItem="4Ch-5s-yLs" secondAttribute="top" id="Bih-fw-cow"/>
-                <constraint firstItem="9dQ-3R-rf8" firstAttribute="height" secondItem="4Ch-5s-yLs" secondAttribute="height" id="JBW-HJ-GRX"/>
-                <constraint firstItem="9dQ-3R-rf8" firstAttribute="leading" secondItem="4Ch-5s-yLs" secondAttribute="trailing" id="RBs-vg-Y1Z"/>
-                <constraint firstItem="Skb-rC-s7k" firstAttribute="leading" secondItem="Qfb-JE-bUl" secondAttribute="leading" id="TTi-Zp-39S"/>
-                <constraint firstItem="Qfb-JE-bUl" firstAttribute="leading" secondItem="aVc-V7-FBS" secondAttribute="leading" id="ZOY-Jz-s51"/>
-                <constraint firstItem="4Ch-5s-yLs" firstAttribute="leading" secondItem="aVc-V7-FBS" secondAttribute="leading" id="bte-oz-Oly"/>
-                <constraint firstItem="a4J-25-yUn" firstAttribute="leading" secondItem="9dQ-3R-rf8" secondAttribute="trailing" id="cUw-fP-nrT"/>
-                <constraint firstItem="4Ch-5s-yLs" firstAttribute="top" secondItem="aVc-V7-FBS" secondAttribute="top" id="dqA-pe-XXh"/>
-                <constraint firstItem="cRx-Wh-6fg" firstAttribute="top" secondItem="Qfb-JE-bUl" secondAttribute="bottom" id="e8S-28-z28"/>
-                <constraint firstAttribute="trailing" secondItem="cRx-Wh-6fg" secondAttribute="trailing" id="fF8-nb-gXa"/>
-                <constraint firstItem="a4J-25-yUn" firstAttribute="height" secondItem="4Ch-5s-yLs" secondAttribute="height" id="jeF-9a-y1X"/>
-                <constraint firstItem="9dQ-3R-rf8" firstAttribute="top" secondItem="4Ch-5s-yLs" secondAttribute="top" id="jmb-MX-BYB"/>
-                <constraint firstItem="9dQ-3R-rf8" firstAttribute="width" secondItem="4Ch-5s-yLs" secondAttribute="width" id="jyU-G1-Km1"/>
-                <constraint firstItem="a4J-25-yUn" firstAttribute="width" secondItem="4Ch-5s-yLs" secondAttribute="width" id="vgv-wZ-9HG"/>
-                <constraint firstItem="Skb-rC-s7k" firstAttribute="top" secondItem="Qfb-JE-bUl" secondAttribute="top" id="w47-rs-psP"/>
-                <constraint firstItem="Skb-rC-s7k" firstAttribute="trailing" secondItem="Qfb-JE-bUl" secondAttribute="trailing" id="wP1-Ht-0lf"/>
-                <constraint firstAttribute="trailing" secondItem="Qfb-JE-bUl" secondAttribute="trailing" id="ylu-aj-JD8"/>
-                <constraint firstAttribute="bottom" secondItem="Qfb-JE-bUl" secondAttribute="bottom" constant="60" id="z3z-OO-F8d"/>
-                <constraint firstItem="Skb-rC-s7k" firstAttribute="bottom" secondItem="Qfb-JE-bUl" secondAttribute="bottom" id="zC7-li-rar"/>
-            </constraints>
-            <point key="canvasLocation" x="260.5" y="299.5"/>
-        </customView>
-        <customView id="3V9-UO-YC8">
-            <rect key="frame" x="0.0" y="0.0" width="237" height="86"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES"/>
-            <subviews>
-                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="w8O-ky-GkI">
-                    <rect key="frame" x="14" y="49" width="18" height="18"/>
-                    <buttonCell key="cell" type="check" title="Button" bezelStyle="regularSquare" imagePosition="only" state="on" inset="2" id="aHX-l2-uDA">
-                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                        <font key="font" metaFont="system"/>
-                    </buttonCell>
-                    <constraints>
-                        <constraint firstAttribute="width" constant="14" id="BfP-0t-bwZ"/>
-                        <constraint firstAttribute="height" constant="14" id="ujc-2v-pXa"/>
-                    </constraints>
-                    <connections>
-                        <action selector="dynamicStampButtonItemClicked_Author:" target="-2" id="QwQ-s3-kqw"/>
-                    </connections>
-                </button>
-                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="nfe-06-8Hb">
-                    <rect key="frame" x="30" y="51" width="35" height="15"/>
-                    <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="8fp-iH-M5S">
-                        <font key="font" metaFont="cellTitle"/>
-                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                    </textFieldCell>
-                </textField>
-                <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Cf3-ij-TW3">
-                    <rect key="frame" x="71" y="48" width="162" height="20"/>
-                    <constraints>
-                        <constraint firstAttribute="width" constant="162" id="InN-b8-goi"/>
-                        <constraint firstAttribute="height" constant="20" id="xZv-8N-dCy"/>
-                    </constraints>
-                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" drawsBackground="YES" id="6rH-dz-04d">
-                        <font key="font" metaFont="system"/>
-                        <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                    </textFieldCell>
-                </textField>
-                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="CiP-Jz-Xdn">
-                    <rect key="frame" x="30" y="18" width="35" height="15"/>
-                    <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="VD2-sn-eiH">
-                        <font key="font" metaFont="cellTitle"/>
-                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                    </textFieldCell>
-                </textField>
-                <box boxType="custom" cornerRadius="1" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="j61-6m-eFB">
-                    <rect key="frame" x="71" y="14" width="162" height="22"/>
-                    <view key="contentView" id="uG6-E9-Enl">
-                        <rect key="frame" x="1" y="1" width="160" height="20"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="wtD-Vt-js7" customClass="KMComboBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                <rect key="frame" x="-1" y="-2" width="164" height="23"/>
-                                <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" buttonBordered="NO" completes="NO" numberOfVisibleItems="5" id="oR8-Eg-1Mn" customClass="KMStampComboBoxCell" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                    <font key="font" metaFont="system"/>
-                                    <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                    <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    <objectValues>
-                                        <string>Item 1</string>
-                                        <string>Item 2</string>
-                                        <string>Item 3</string>
-                                    </objectValues>
-                                </comboBoxCell>
-                            </comboBox>
-                        </subviews>
-                        <constraints>
-                            <constraint firstItem="wtD-Vt-js7" firstAttribute="leading" secondItem="uG6-E9-Enl" secondAttribute="leading" id="3vz-32-0Ld"/>
-                            <constraint firstItem="wtD-Vt-js7" firstAttribute="top" secondItem="uG6-E9-Enl" secondAttribute="top" id="IHa-MM-17v"/>
-                            <constraint firstAttribute="trailing" secondItem="wtD-Vt-js7" secondAttribute="trailing" id="Vm4-Iz-Xji"/>
-                            <constraint firstAttribute="bottom" secondItem="wtD-Vt-js7" secondAttribute="bottom" id="yAV-gL-RsM"/>
-                        </constraints>
-                    </view>
-                </box>
-            </subviews>
-            <constraints>
-                <constraint firstItem="CiP-Jz-Xdn" firstAttribute="leading" secondItem="nfe-06-8Hb" secondAttribute="leading" id="3MG-Pw-C7h"/>
-                <constraint firstItem="w8O-ky-GkI" firstAttribute="top" secondItem="3V9-UO-YC8" secondAttribute="top" constant="21" id="DeA-sp-YQg"/>
-                <constraint firstItem="nfe-06-8Hb" firstAttribute="centerY" secondItem="w8O-ky-GkI" secondAttribute="centerY" id="Ept-8p-IYX"/>
-                <constraint firstItem="Cf3-ij-TW3" firstAttribute="centerY" secondItem="w8O-ky-GkI" secondAttribute="centerY" id="GRl-ed-rdN"/>
-                <constraint firstItem="j61-6m-eFB" firstAttribute="centerY" secondItem="CiP-Jz-Xdn" secondAttribute="centerY" id="OCr-Gs-wt3"/>
-                <constraint firstItem="j61-6m-eFB" firstAttribute="leading" secondItem="Cf3-ij-TW3" secondAttribute="leading" id="QBr-Kt-0Fr"/>
-                <constraint firstItem="Cf3-ij-TW3" firstAttribute="leading" secondItem="nfe-06-8Hb" secondAttribute="trailing" constant="8" id="a0s-M5-P30"/>
-                <constraint firstItem="w8O-ky-GkI" firstAttribute="leading" secondItem="3V9-UO-YC8" secondAttribute="leading" constant="16" id="kpd-KL-XfS"/>
-                <constraint firstItem="j61-6m-eFB" firstAttribute="trailing" secondItem="Cf3-ij-TW3" secondAttribute="trailing" id="nQR-jd-Dcj"/>
-                <constraint firstItem="j61-6m-eFB" firstAttribute="top" secondItem="Cf3-ij-TW3" secondAttribute="bottom" constant="12" id="oGn-xV-A78"/>
-                <constraint firstItem="nfe-06-8Hb" firstAttribute="leading" secondItem="w8O-ky-GkI" secondAttribute="trailing" constant="2" id="qGA-TW-KLv"/>
-            </constraints>
-            <point key="canvasLocation" x="546.5" y="551"/>
-        </customView>
-        <customView id="RNY-Tv-xZx">
-            <rect key="frame" x="0.0" y="0.0" width="237" height="60"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES"/>
-            <subviews>
-                <customView translatesAutoresizingMaskIntoConstraints="NO" id="bRx-2b-FgS">
-                    <rect key="frame" x="0.0" y="0.0" width="119" height="60"/>
-                    <subviews>
-                        <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="zG5-2e-zz5">
-                            <rect key="frame" x="16" y="14" width="87" height="32"/>
-                            <buttonCell key="cell" type="square" title="Button" bezelStyle="shadowlessSquare" alignment="center" imageScaling="proportionallyDown" inset="2" id="1K0-9K-JFM">
-                                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                <font key="font" metaFont="system"/>
-                            </buttonCell>
-                            <constraints>
-                                <constraint firstAttribute="height" constant="32" id="D43-Ug-Qhk"/>
-                            </constraints>
-                            <connections>
-                                <action selector="imageStampButtonAction:" target="-2" id="Cmx-Bb-iBN"/>
-                            </connections>
-                        </button>
-                    </subviews>
-                    <constraints>
-                        <constraint firstAttribute="trailing" relation="lessThanOrEqual" secondItem="zG5-2e-zz5" secondAttribute="trailing" constant="16" id="1K9-5R-0RF"/>
-                        <constraint firstItem="zG5-2e-zz5" firstAttribute="centerY" secondItem="bRx-2b-FgS" secondAttribute="centerY" id="PXv-Hq-M9M"/>
-                        <constraint firstItem="zG5-2e-zz5" firstAttribute="leading" relation="lessThanOrEqual" secondItem="bRx-2b-FgS" secondAttribute="leading" constant="16" id="yWl-4d-kqo"/>
-                    </constraints>
-                </customView>
-                <customView translatesAutoresizingMaskIntoConstraints="NO" id="gkP-AQ-ZUd">
-                    <rect key="frame" x="119" y="0.0" width="118" height="60"/>
-                    <subviews>
-                        <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="16J-eB-gZj">
-                            <rect key="frame" x="16" y="14" width="86" height="32"/>
-                            <buttonCell key="cell" type="square" title="Button" bezelStyle="shadowlessSquare" alignment="center" imageScaling="proportionallyDown" inset="2" id="5ZG-YB-9Bz">
-                                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                <font key="font" metaFont="system"/>
-                            </buttonCell>
-                            <constraints>
-                                <constraint firstAttribute="height" constant="32" id="MJd-0t-v1r"/>
-                            </constraints>
-                            <connections>
-                                <action selector="textStampButtonAction:" target="-2" id="jl5-YH-6q8"/>
-                            </connections>
-                        </button>
-                    </subviews>
-                    <constraints>
-                        <constraint firstItem="16J-eB-gZj" firstAttribute="leading" relation="lessThanOrEqual" secondItem="gkP-AQ-ZUd" secondAttribute="leading" constant="16" id="gTr-Se-mmp"/>
-                        <constraint firstItem="16J-eB-gZj" firstAttribute="centerY" secondItem="gkP-AQ-ZUd" secondAttribute="centerY" id="h46-Vu-Ehn"/>
-                        <constraint firstAttribute="trailing" relation="lessThanOrEqual" secondItem="16J-eB-gZj" secondAttribute="trailing" constant="16" id="qCC-Lq-Cwp"/>
-                    </constraints>
-                </customView>
-            </subviews>
-            <constraints>
-                <constraint firstAttribute="bottom" secondItem="gkP-AQ-ZUd" secondAttribute="bottom" id="IUm-Sd-sMV"/>
-                <constraint firstItem="gkP-AQ-ZUd" firstAttribute="top" secondItem="RNY-Tv-xZx" secondAttribute="top" id="c1p-yO-IUP"/>
-                <constraint firstItem="bRx-2b-FgS" firstAttribute="leading" secondItem="RNY-Tv-xZx" secondAttribute="leading" id="ibP-ql-H3F"/>
-                <constraint firstItem="gkP-AQ-ZUd" firstAttribute="width" secondItem="bRx-2b-FgS" secondAttribute="width" id="kcz-ij-hfx"/>
-                <constraint firstItem="bRx-2b-FgS" firstAttribute="width" secondItem="RNY-Tv-xZx" secondAttribute="width" multiplier="0.5" id="qTa-WI-6Tt"/>
-                <constraint firstAttribute="trailing" secondItem="gkP-AQ-ZUd" secondAttribute="trailing" id="wtj-JN-xac"/>
-                <constraint firstAttribute="bottom" secondItem="bRx-2b-FgS" secondAttribute="bottom" id="ybb-s2-3YQ"/>
-                <constraint firstItem="bRx-2b-FgS" firstAttribute="top" secondItem="RNY-Tv-xZx" secondAttribute="top" id="yc1-sZ-fGe"/>
-            </constraints>
-            <point key="canvasLocation" x="831.5" y="569"/>
-        </customView>
-        <scrollView autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" id="XkM-hI-Z6Q">
-            <rect key="frame" x="0.0" y="0.0" width="262" height="599"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES"/>
-            <clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="NDK-ok-tvh">
-                <rect key="frame" x="1" y="1" width="260" height="597"/>
-                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                <subviews>
-                    <view id="Aj7-0M-710">
-                        <rect key="frame" x="0.0" y="0.0" width="245" height="582"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="boX-w4-4Qf">
-                                <rect key="frame" x="16" y="502" width="213" height="80"/>
-                                <view key="contentView" id="0nI-f1-DBl">
-                                    <rect key="frame" x="0.0" y="0.0" width="213" height="80"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <subviews>
-                                        <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="EEJ-mI-fRi">
-                                            <rect key="frame" x="20" y="16" width="173" height="48"/>
-                                            <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="GgB-kh-ZUo"/>
-                                        </imageView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstAttribute="bottom" secondItem="EEJ-mI-fRi" secondAttribute="bottom" constant="16" id="LbD-VE-8bc"/>
-                                        <constraint firstItem="EEJ-mI-fRi" firstAttribute="top" secondItem="0nI-f1-DBl" secondAttribute="top" constant="16" id="jjb-w1-X3v"/>
-                                        <constraint firstAttribute="trailing" secondItem="EEJ-mI-fRi" secondAttribute="trailing" constant="20" id="lMH-pg-L5E"/>
-                                        <constraint firstItem="EEJ-mI-fRi" firstAttribute="leading" secondItem="0nI-f1-DBl" secondAttribute="leading" constant="20" id="v6j-56-ziO"/>
-                                    </constraints>
-                                </view>
-                                <constraints>
-                                    <constraint firstAttribute="height" constant="80" id="kLj-qP-zeQ"/>
-                                </constraints>
-                                <color key="fillColor" red="0.99999600649999998" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                            </box>
-                            <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="JXe-4Q-gCs">
-                                <rect key="frame" x="16" y="342" width="213" height="64"/>
-                                <view key="contentView" id="kRl-pI-Ztq">
-                                    <rect key="frame" x="0.0" y="0.0" width="213" height="64"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <subviews>
-                                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tKZ-fa-8Ft">
-                                            <rect key="frame" x="-2" y="34" width="217" height="20"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="20" id="FJF-i6-gOD"/>
-                                            </constraints>
-                                            <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="8Tn-WN-il9">
-                                                <font key="font" metaFont="systemBold" size="14"/>
-                                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                            </textFieldCell>
-                                        </textField>
-                                        <box boxType="custom" cornerRadius="1" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="6Vm-3i-iSJ" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                            <rect key="frame" x="0.0" y="0.0" width="69" height="24"/>
-                                            <view key="contentView" id="iFy-rI-1HW">
-                                                <rect key="frame" x="1" y="1" width="67" height="22"/>
-                                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                <subviews>
-                                                    <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="awq-J6-Rn6">
-                                                        <rect key="frame" x="0.0" y="0.0" width="67" height="22"/>
-                                                        <imageCell key="cell" refusesFirstResponder="YES" alignment="left" image="KMImageNameUXIconPropertybarRotateClockwiseNor" id="ogY-Uu-Vdy"/>
-                                                    </imageView>
-                                                </subviews>
-                                                <constraints>
-                                                    <constraint firstItem="awq-J6-Rn6" firstAttribute="top" secondItem="iFy-rI-1HW" secondAttribute="top" id="6nc-hI-LZI"/>
-                                                    <constraint firstAttribute="trailing" secondItem="awq-J6-Rn6" secondAttribute="trailing" id="H3G-6V-Mah"/>
-                                                    <constraint firstItem="awq-J6-Rn6" firstAttribute="leading" secondItem="iFy-rI-1HW" secondAttribute="leading" id="LUu-Iu-dcs"/>
-                                                    <constraint firstAttribute="bottom" secondItem="awq-J6-Rn6" secondAttribute="bottom" id="T5l-Ai-pZm"/>
-                                                </constraints>
-                                            </view>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="24" id="fxh-v9-73C"/>
-                                                <constraint firstAttribute="width" constant="69" id="z7x-p4-WCk"/>
-                                            </constraints>
-                                        </box>
-                                        <box boxType="custom" cornerRadius="1" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="Nf2-e7-zm4" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                            <rect key="frame" x="78" y="0.0" width="69" height="24"/>
-                                            <view key="contentView" id="5Kl-Jf-ges">
-                                                <rect key="frame" x="1" y="1" width="67" height="22"/>
-                                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                <subviews>
-                                                    <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="xeG-af-M7X">
-                                                        <rect key="frame" x="0.0" y="0.0" width="67" height="22"/>
-                                                        <imageCell key="cell" refusesFirstResponder="YES" alignment="left" image="KMImageNameUXIconPropertybarRotateCounterclockwiseNor" id="zoB-t7-OW8"/>
-                                                    </imageView>
-                                                </subviews>
-                                                <constraints>
-                                                    <constraint firstAttribute="trailing" secondItem="xeG-af-M7X" secondAttribute="trailing" id="6tl-3W-Xhr"/>
-                                                    <constraint firstAttribute="bottom" secondItem="xeG-af-M7X" secondAttribute="bottom" id="Kps-ai-fha"/>
-                                                    <constraint firstItem="xeG-af-M7X" firstAttribute="top" secondItem="5Kl-Jf-ges" secondAttribute="top" id="Xjj-lk-PTI"/>
-                                                    <constraint firstItem="xeG-af-M7X" firstAttribute="leading" secondItem="5Kl-Jf-ges" secondAttribute="leading" id="mfP-3v-XzR"/>
-                                                </constraints>
-                                            </view>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="24" id="AJ0-8L-bWi"/>
-                                                <constraint firstAttribute="width" constant="69" id="S6D-Ba-d2V"/>
-                                            </constraints>
-                                        </box>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="tKZ-fa-8Ft" firstAttribute="top" secondItem="kRl-pI-Ztq" secondAttribute="top" constant="10" id="0km-4R-ZOd"/>
-                                        <constraint firstItem="tKZ-fa-8Ft" firstAttribute="leading" secondItem="kRl-pI-Ztq" secondAttribute="leading" id="1xc-L9-TRg"/>
-                                        <constraint firstAttribute="bottom" secondItem="6Vm-3i-iSJ" secondAttribute="bottom" id="D4U-ge-oaX"/>
-                                        <constraint firstItem="Nf2-e7-zm4" firstAttribute="leading" secondItem="6Vm-3i-iSJ" secondAttribute="trailing" constant="9" id="E1D-zk-9Av"/>
-                                        <constraint firstAttribute="bottom" secondItem="Nf2-e7-zm4" secondAttribute="bottom" id="Imi-62-qrb"/>
-                                        <constraint firstItem="6Vm-3i-iSJ" firstAttribute="leading" secondItem="kRl-pI-Ztq" secondAttribute="leading" id="QuA-7H-dka"/>
-                                        <constraint firstAttribute="trailing" secondItem="tKZ-fa-8Ft" secondAttribute="trailing" id="euV-FG-M5p"/>
-                                    </constraints>
-                                </view>
-                                <constraints>
-                                    <constraint firstAttribute="height" constant="64" id="Ypd-yB-mdT"/>
-                                </constraints>
-                            </box>
-                            <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="IFI-8g-CYh">
-                                <rect key="frame" x="16" y="0.0" width="213" height="326"/>
-                                <view key="contentView" id="9qa-Oq-oOt">
-                                    <rect key="frame" x="0.0" y="0.0" width="213" height="326"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <subviews>
-                                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="UsV-0m-nUC">
-                                            <rect key="frame" x="-2" y="296" width="42" height="20"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="20" id="Qva-NE-D5a"/>
-                                            </constraints>
-                                            <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="VHY-hZ-E8p">
-                                                <font key="font" metaFont="systemBold" size="14"/>
-                                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                            </textFieldCell>
-                                        </textField>
-                                        <scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="43Y-Fz-EW6">
-                                            <rect key="frame" x="0.0" y="176" width="213" height="110"/>
-                                            <clipView key="contentView" drawsBackground="NO" id="wcx-5m-Dzd">
-                                                <rect key="frame" x="0.0" y="0.0" width="213" height="110"/>
-                                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                <subviews>
-                                                    <textView importsGraphics="NO" verticallyResizable="YES" usesFontPanel="YES" findStyle="panel" continuousSpellChecking="YES" allowsUndo="YES" usesRuler="YES" allowsNonContiguousLayout="YES" quoteSubstitution="YES" dashSubstitution="YES" spellingCorrection="YES" smartInsertDelete="YES" id="lq6-MU-1hZ">
-                                                        <rect key="frame" x="0.0" y="0.0" width="213" height="110"/>
-                                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                                        <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
-                                                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
-                                                        <size key="minSize" width="213" height="110"/>
-                                                        <size key="maxSize" width="463" height="10000000"/>
-                                                        <color key="insertionPointColor" name="textColor" catalog="System" colorSpace="catalog"/>
-                                                    </textView>
-                                                </subviews>
-                                            </clipView>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="110" id="bVo-dx-ENY"/>
-                                            </constraints>
-                                            <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="p3Y-Bi-OxR">
-                                                <rect key="frame" x="-100" y="-100" width="87" height="18"/>
-                                                <autoresizingMask key="autoresizingMask"/>
-                                            </scroller>
-                                            <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="kch-yq-sCJ">
-                                                <rect key="frame" x="222" y="1" width="15" height="98"/>
-                                                <autoresizingMask key="autoresizingMask"/>
-                                            </scroller>
-                                        </scrollView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="UsV-0m-nUC" firstAttribute="top" secondItem="9qa-Oq-oOt" secondAttribute="top" constant="10" id="DSE-bq-UGv"/>
-                                        <constraint firstItem="43Y-Fz-EW6" firstAttribute="leading" secondItem="9qa-Oq-oOt" secondAttribute="leading" id="Huk-aL-QnI"/>
-                                        <constraint firstAttribute="trailing" secondItem="43Y-Fz-EW6" secondAttribute="trailing" id="Yrl-8a-Omy"/>
-                                        <constraint firstItem="UsV-0m-nUC" firstAttribute="leading" secondItem="9qa-Oq-oOt" secondAttribute="leading" id="a0J-FD-Dc3"/>
-                                        <constraint firstItem="43Y-Fz-EW6" firstAttribute="top" secondItem="UsV-0m-nUC" secondAttribute="bottom" constant="10" id="ycg-uh-lrX"/>
-                                    </constraints>
-                                </view>
-                            </box>
-                            <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="22t-Qb-mZk">
-                                <rect key="frame" x="16" y="422" width="213" height="64"/>
-                                <view key="contentView" id="1UJ-gh-uAB">
-                                    <rect key="frame" x="0.0" y="0.0" width="213" height="64"/>
-                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                    <subviews>
-                                        <comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="clF-X8-CfE">
-                                            <rect key="frame" x="140" y="-2" width="76" height="27"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="24" id="6Gi-XH-APf"/>
-                                                <constraint firstAttribute="width" constant="72" id="LQZ-Vw-rg8"/>
-                                            </constraints>
-                                            <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" focusRingType="none" alignment="center" drawsBackground="YES" completes="NO" numberOfVisibleItems="5" id="VyB-xV-8Cm">
-                                                <font key="font" metaFont="cellTitle"/>
-                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                <objectValues>
-                                                    <string>25%</string>
-                                                    <string>50%</string>
-                                                    <string>75%</string>
-                                                    <string>100%</string>
-                                                </objectValues>
-                                            </comboBoxCell>
-                                            <connections>
-                                                <action selector="opacityComboBoxAction:" target="-2" id="d35-kf-uWc"/>
-                                            </connections>
-                                        </comboBox>
-                                        <slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="cXF-Rh-krb">
-                                            <rect key="frame" x="-2" y="-4" width="137" height="28"/>
-                                            <sliderCell key="cell" alignment="left" maxValue="1" doubleValue="1" tickMarkPosition="above" sliderType="linear" id="yBZ-BU-cbc"/>
-                                            <connections>
-                                                <action selector="opacitySliderAction:" target="-2" id="mik-d8-oIH"/>
-                                            </connections>
-                                        </slider>
-                                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Dl7-N2-sZY">
-                                            <rect key="frame" x="-2" y="32" width="42" height="20"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="20" id="0vB-EP-csS"/>
-                                            </constraints>
-                                            <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="UUu-MT-Yxq">
-                                                <font key="font" metaFont="systemBold" size="14"/>
-                                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                            </textFieldCell>
-                                        </textField>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstAttribute="bottom" secondItem="clF-X8-CfE" secondAttribute="bottom" id="1T8-fT-zLk"/>
-                                        <constraint firstItem="Dl7-N2-sZY" firstAttribute="leading" secondItem="1UJ-gh-uAB" secondAttribute="leading" id="2lo-GU-AOg"/>
-                                        <constraint firstItem="cXF-Rh-krb" firstAttribute="leading" secondItem="1UJ-gh-uAB" secondAttribute="leading" id="6ZA-XO-lst"/>
-                                        <constraint firstItem="clF-X8-CfE" firstAttribute="leading" secondItem="cXF-Rh-krb" secondAttribute="trailing" constant="8" id="F40-pY-Lg3"/>
-                                        <constraint firstItem="cXF-Rh-krb" firstAttribute="top" secondItem="Dl7-N2-sZY" secondAttribute="bottom" constant="10" id="ThK-Fj-NZN"/>
-                                        <constraint firstItem="clF-X8-CfE" firstAttribute="centerY" secondItem="cXF-Rh-krb" secondAttribute="centerY" id="cYK-46-QIW"/>
-                                        <constraint firstAttribute="trailing" secondItem="clF-X8-CfE" secondAttribute="trailing" id="vOx-fM-E4W"/>
-                                    </constraints>
-                                </view>
-                                <constraints>
-                                    <constraint firstAttribute="height" constant="64" id="EHD-nQ-wUX"/>
-                                </constraints>
-                            </box>
-                        </subviews>
-                        <constraints>
-                            <constraint firstItem="IFI-8g-CYh" firstAttribute="trailing" secondItem="JXe-4Q-gCs" secondAttribute="trailing" id="K08-JC-OvB"/>
-                            <constraint firstAttribute="trailing" secondItem="boX-w4-4Qf" secondAttribute="trailing" constant="16" id="QHw-QM-9wK"/>
-                            <constraint firstItem="22t-Qb-mZk" firstAttribute="trailing" secondItem="boX-w4-4Qf" secondAttribute="trailing" id="Ucg-R8-zRX"/>
-                            <constraint firstItem="JXe-4Q-gCs" firstAttribute="leading" secondItem="boX-w4-4Qf" secondAttribute="leading" id="W8a-3b-uOL"/>
-                            <constraint firstItem="IFI-8g-CYh" firstAttribute="leading" secondItem="JXe-4Q-gCs" secondAttribute="leading" id="YVF-Jt-o7q"/>
-                            <constraint firstAttribute="bottom" secondItem="IFI-8g-CYh" secondAttribute="bottom" id="gDt-Qr-c3x"/>
-                            <constraint firstItem="JXe-4Q-gCs" firstAttribute="trailing" secondItem="boX-w4-4Qf" secondAttribute="trailing" id="gIC-lD-ahb"/>
-                            <constraint firstItem="boX-w4-4Qf" firstAttribute="top" secondItem="Aj7-0M-710" secondAttribute="top" id="pBr-G2-epf"/>
-                            <constraint firstItem="JXe-4Q-gCs" firstAttribute="top" secondItem="boX-w4-4Qf" secondAttribute="bottom" constant="96" id="qJi-l1-DIj"/>
-                            <constraint firstItem="boX-w4-4Qf" firstAttribute="leading" secondItem="Aj7-0M-710" secondAttribute="leading" constant="16" id="utC-v7-XFT"/>
-                            <constraint firstItem="22t-Qb-mZk" firstAttribute="top" secondItem="boX-w4-4Qf" secondAttribute="bottom" constant="16" id="yPc-dA-X0D"/>
-                            <constraint firstItem="22t-Qb-mZk" firstAttribute="leading" secondItem="boX-w4-4Qf" secondAttribute="leading" id="yUv-12-925"/>
-                            <constraint firstItem="IFI-8g-CYh" firstAttribute="top" secondItem="JXe-4Q-gCs" secondAttribute="bottom" constant="16" id="zAb-Qa-5cY"/>
-                        </constraints>
-                    </view>
-                </subviews>
-            </clipView>
-            <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="q4P-TA-L45">
-                <rect key="frame" x="-100" y="-100" width="239" height="15"/>
-                <autoresizingMask key="autoresizingMask"/>
-            </scroller>
-            <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="mBn-Iz-dD0">
-                <rect key="frame" x="246" y="1" width="15" height="597"/>
-                <autoresizingMask key="autoresizingMask"/>
-            </scroller>
-            <point key="canvasLocation" x="559" y="983.5"/>
-        </scrollView>
-        <customView id="CpL-4i-FVy">
-            <rect key="frame" x="0.0" y="0.0" width="237" height="90"/>
-            <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES"/>
-            <subviews>
-                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XEv-5I-scI">
-                    <rect key="frame" x="16" y="29" width="205" height="32"/>
-                    <buttonCell key="cell" type="bevel" title="Button" bezelStyle="regularSquare" image="KMImageNameUXIconBtnAddWhite" imagePosition="left" alignment="center" state="on" imageScaling="proportionallyDown" inset="2" id="lDJ-8r-ufg" customClass="KMButtomCell" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                        <font key="font" metaFont="system"/>
-                    </buttonCell>
-                    <constraints>
-                        <constraint firstAttribute="height" constant="32" id="dMf-0k-px9"/>
-                    </constraints>
-                    <connections>
-                        <action selector="addButtonAction:" target="-2" id="McC-yk-WUV"/>
-                    </connections>
-                </button>
-            </subviews>
-            <constraints>
-                <constraint firstItem="XEv-5I-scI" firstAttribute="centerY" secondItem="CpL-4i-FVy" secondAttribute="centerY" id="6CZ-wl-KyP"/>
-                <constraint firstAttribute="trailing" secondItem="XEv-5I-scI" secondAttribute="trailing" constant="16" id="LYR-Zy-o0o"/>
-                <constraint firstItem="XEv-5I-scI" firstAttribute="leading" secondItem="CpL-4i-FVy" secondAttribute="leading" constant="16" id="S4v-cz-WX7"/>
-            </constraints>
-            <point key="canvasLocation" x="547" y="410"/>
-        </customView>
-    </objects>
-    <resources>
-        <image name="KMImageNameEmptyStamp" width="140" height="140"/>
-        <image name="KMImageNameUXIconBtnAddWhite" width="16" height="16"/>
-        <image name="KMImageNameUXIconBtnCloseNor" width="16" height="16"/>
-        <image name="KMImageNameUXIconPropertybarRotateClockwiseNor" width="20" height="20"/>
-        <image name="KMImageNameUXIconPropertybarRotateCounterclockwiseNor" width="20" height="20"/>
-    </resources>
-</document>

+ 0 - 135
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMDynamicStampViewController.swift

@@ -1,135 +0,0 @@
-//
-//  KMDynamicStampViewController.swift
-//  PDF Reader Pro
-//
-//  Created by lizhe on 2023/10/13.
-//
-
-import Cocoa
-typealias UpdateStampCallBack = () -> Void
-
-@objcMembers class KMDynamicStampViewController: NSViewController, NSComboBoxDelegate, NSTextFieldDelegate {
-    @IBOutlet weak var titleTextField: NSTextField!
-    @IBOutlet weak var preViewImageView: NSImageView!
-    @IBOutlet weak var authorButton: NSButton!
-    @IBOutlet weak var authorTextField: NSTextField!
-    @IBOutlet weak var timeTextField: NSTextField!
-    @IBOutlet weak var showTimeBox: NSComboBox!
-    @IBOutlet weak var okButton: NSButton!
-    @IBOutlet weak var cancel: NSButton!
-    
-    var callBack: UpdateStampCallBack?
-    
-    var dateStyleArray: [String] = []
-    var dateFormatterString: String = ""
-    var dynamicStampNeedsAuthor: Bool = false
-    
-    override func viewDidAppear() {
-        super.viewDidAppear()
-        self.view.window?.title = ""
-        self.view.window?.styleMask.insert(.fullSizeContentView)
-        self.view.window?.titlebarAppearsTransparent = true
-        self.view.window?.standardWindowButton(.closeButton)?.isHidden = true
-        self.view.window?.standardWindowButton(.miniaturizeButton)?.isHidden = true
-        self.view.window?.standardWindowButton(.zoomButton)?.isHidden = true
-    }
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        titleTextField.stringValue = NSLocalizedString("DynamicStamp", comment: "")
-        authorButton.title = NSLocalizedString("author", comment: "")
-        timeTextField.stringValue = NSLocalizedString("Time", comment: "")
-        
-        dateStyleArray = KMStampManager.defaultManager.dateStyleArray() 
-        showTimeBox.removeAllItems()
-        showTimeBox.addItems(withObjectValues: dateStyleArray)
-        showTimeBox.delegate = self
-        
-        //从沙盒中取出日期格式
-        let dateStyleIndicate = UserDefaults.standard.string(forKey: CPDFDynamicStampDateStyleKey1)
-        if let dateStyleIndicate = dateStyleIndicate, dateStyleIndicate.isEmpty {
-            showTimeBox.selectItem(at: dateStyleArray.count - 1)
-            dateFormatterString = dateStyleArray.last ?? ""
-        } else {
-            if let index = dateStyleArray.firstIndex(of: dateStyleIndicate!) {
-                showTimeBox.selectItem(at: index)
-                dateFormatterString = dateStyleIndicate!
-            } else {
-                showTimeBox.selectItem(at: dateStyleArray.count - 1)
-                dateFormatterString = dateStyleArray.last ?? ""
-            }
-        }
-        
-        //从沙盒中取出是否需要作者
-        let isNeedAuthor = UserDefaults.standard.bool(forKey: CPDFDynamicStampNeedAuthorKey1)
-        
-        dynamicStampNeedsAuthor = !isNeedAuthor
-        authorButton.state = dynamicStampNeedsAuthor ? .on : .off
-        
-        var author = UserDefaults.standard.string(forKey: "CKUserName") ?? ""
-        author = author.isEmpty ? NSFullUserName() : author
-        
-        if dynamicStampNeedsAuthor {
-            authorTextField.isEditable = true
-            authorTextField.isSelectable = true
-            authorTextField.stringValue = author
-            authorTextField.placeholderString = ""
-            authorTextField.delegate = self
-        } else {
-            authorTextField.isEditable = false
-            authorTextField.isSelectable = false
-            authorTextField.stringValue = ""
-            authorTextField.placeholderString = author
-            authorTextField.delegate = self
-        }
-    }
-    
-    @IBAction func cancelButtonClick(_ sender: Any) {
-        dismiss(self)
-    }
-    
-    @IBAction func okButtonClick(_ sender: Any) {
-        if let callBack = callBack {
-            callBack()
-        }
-        cancelButtonClick(self)
-    }
-    
-    @IBAction func selectAuthorButtonClick(_ sender: Any) {
-        //从沙盒中取出作者,如果没有
-        var author = UserDefaults.standard.string(forKey: "CKUserName") ?? ""
-        author = author.isEmpty ? NSFullUserName() : author
-
-        authorTextField.placeholderString = author
-        dynamicStampNeedsAuthor = !dynamicStampNeedsAuthor
-
-        if authorButton.state == .on {
-            authorTextField.isEditable = true
-            authorTextField.becomeFirstResponder()
-            authorTextField.stringValue = author
-        } else {
-            authorTextField.isEditable = false
-            authorTextField.stringValue = ""
-            authorTextField.resignFirstResponder()
-        }
-        UserDefaults.standard.set(!dynamicStampNeedsAuthor, forKey: CPDFDynamicStampNeedAuthorKey1)
-        UserDefaults.standard.synchronize()
-    }
-    
-    // MARK: - NSComboBoxDelegate
-    
-    func comboBoxSelectionDidChange(_ notification: Notification) {
-        if let box = notification.object as? NSComboBox {
-            let selectIndex = box.indexOfSelectedItem
-            dateFormatterString = dateStyleArray[selectIndex]
-            UserDefaults.standard.set(dateFormatterString, forKey: CPDFDynamicStampDateStyleKey1)
-        }
-    }
-    
-    // MARK: - NSTextfieldDelegate
-    
-    func controlTextDidEndEditing(_ obj: Notification) {
-        let userName = authorTextField.stringValue.isEmpty ? "" : authorTextField.stringValue
-        KMDataManager.ud_set(userName, forKey: KMUserNameKey)
-    }
-}

+ 0 - 134
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/CreateStamp/KMDynamicStampViewController.xib

@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
-    <dependencies>
-        <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <objects>
-        <customObject id="-2" userLabel="File's Owner" customClass="KMDynamicStampViewController">
-            <connections>
-                <outlet property="authorButton" destination="FWz-eP-rMp" id="6Dp-El-8w1"/>
-                <outlet property="authorTextField" destination="h04-zJ-ESh" id="qn1-fK-Jga"/>
-                <outlet property="cancel" destination="W8O-AB-LV3" id="ay8-hI-e2d"/>
-                <outlet property="okButton" destination="409-nL-biZ" id="FHC-My-gWh"/>
-                <outlet property="showTimeBox" destination="NB2-m7-l19" id="DdH-wn-KVf"/>
-                <outlet property="timeTextField" destination="Gp9-c5-GxZ" id="j2p-YC-Lpd"/>
-                <outlet property="titleTextField" destination="hDL-yw-0LU" id="X5Z-xk-nCr"/>
-                <outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
-            </connections>
-        </customObject>
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
-        <customObject id="-3" userLabel="Application" customClass="NSObject"/>
-        <customView id="Hz6-mo-xeY">
-            <rect key="frame" x="0.0" y="0.0" width="391" height="141"/>
-            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-            <subviews>
-                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hDL-yw-0LU">
-                    <rect key="frame" x="13" y="110" width="37" height="16"/>
-                    <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="Oe9-9H-SuI">
-                        <font key="font" usesAppearanceFont="YES"/>
-                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                    </textFieldCell>
-                </textField>
-                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="FWz-eP-rMp">
-                    <rect key="frame" x="13" y="67" width="53" height="18"/>
-                    <buttonCell key="cell" type="check" title="作者" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="YVZ-P6-Pyu">
-                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                        <font key="font" metaFont="system"/>
-                    </buttonCell>
-                    <connections>
-                        <action selector="selectAuthorButton_Click:" target="-2" id="Bvq-Dm-qUu"/>
-                    </connections>
-                </button>
-                <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="h04-zJ-ESh">
-                    <rect key="frame" x="76" y="66" width="96" height="21"/>
-                    <constraints>
-                        <constraint firstAttribute="width" constant="96" id="hQm-5b-VGC"/>
-                    </constraints>
-                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" id="q1q-Le-5Rq">
-                        <font key="font" metaFont="system"/>
-                        <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                    </textFieldCell>
-                </textField>
-                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Gp9-c5-GxZ">
-                    <rect key="frame" x="214" y="68" width="34" height="16"/>
-                    <textFieldCell key="cell" lineBreakMode="clipping" title="Time" id="kru-3C-8Dj">
-                        <font key="font" metaFont="system"/>
-                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                    </textFieldCell>
-                </textField>
-                <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="TWx-CB-fJo">
-                    <rect key="frame" x="15" y="48" width="361" height="5"/>
-                </box>
-                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="409-nL-biZ">
-                    <rect key="frame" x="330" y="8" width="53" height="32"/>
-                    <buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="IYv-Gu-de4">
-                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                        <font key="font" metaFont="system"/>
-                        <string key="keyEquivalent" base64-UTF8="YES">
-DQ
-</string>
-                    </buttonCell>
-                    <connections>
-                        <action selector="okButton_Click:" target="-2" id="2mW-1w-zuw"/>
-                    </connections>
-                </button>
-                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="W8O-AB-LV3">
-                    <rect key="frame" x="258" y="8" width="76" height="32"/>
-                    <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gFb-Pl-wnM">
-                        <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                        <font key="font" metaFont="system"/>
-                        <string key="keyEquivalent" base64-UTF8="YES">
-Gw
-</string>
-                    </buttonCell>
-                    <connections>
-                        <action selector="cancelButton_Click:" target="-2" id="RD5-nw-nr5"/>
-                    </connections>
-                </button>
-                <comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="NB2-m7-l19" customClass="KMComboBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                    <rect key="frame" x="255" y="64" width="124" height="23"/>
-                    <constraints>
-                        <constraint firstAttribute="width" constant="120" id="usv-QX-7LK"/>
-                    </constraints>
-                    <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="border" drawsBackground="YES" completes="NO" numberOfVisibleItems="5" id="Z18-hf-HCD">
-                        <font key="font" metaFont="system"/>
-                        <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                    </comboBoxCell>
-                </comboBox>
-                <box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="ECJ-jv-Anc">
-                    <rect key="frame" x="15" y="97" width="361" height="5"/>
-                </box>
-            </subviews>
-            <constraints>
-                <constraint firstItem="TWx-CB-fJo" firstAttribute="top" secondItem="h04-zJ-ESh" secondAttribute="bottom" constant="15" id="1aN-02-RDM"/>
-                <constraint firstAttribute="trailing" secondItem="NB2-m7-l19" secondAttribute="trailing" constant="15" id="1ck-6I-tXd"/>
-                <constraint firstItem="ECJ-jv-Anc" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="15" id="3eP-TL-IjR"/>
-                <constraint firstItem="TWx-CB-fJo" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="15" id="4Rc-k3-C5c"/>
-                <constraint firstAttribute="trailing" secondItem="TWx-CB-fJo" secondAttribute="trailing" constant="15" id="4ug-x9-iZF"/>
-                <constraint firstItem="TWx-CB-fJo" firstAttribute="leading" secondItem="FWz-eP-rMp" secondAttribute="leading" id="5N9-8Z-f8G"/>
-                <constraint firstItem="W8O-AB-LV3" firstAttribute="centerY" secondItem="409-nL-biZ" secondAttribute="centerY" id="6Yz-6E-xPU"/>
-                <constraint firstItem="NB2-m7-l19" firstAttribute="leading" secondItem="Gp9-c5-GxZ" secondAttribute="trailing" constant="10" id="7EE-gD-dwp"/>
-                <constraint firstItem="h04-zJ-ESh" firstAttribute="centerY" secondItem="FWz-eP-rMp" secondAttribute="centerY" id="I9e-Hr-2J3"/>
-                <constraint firstItem="Gp9-c5-GxZ" firstAttribute="centerY" secondItem="NB2-m7-l19" secondAttribute="centerY" id="Lta-sz-hvI"/>
-                <constraint firstItem="hDL-yw-0LU" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="15" id="M9D-qP-g4C"/>
-                <constraint firstAttribute="trailing" secondItem="ECJ-jv-Anc" secondAttribute="trailing" constant="15" id="RZf-Lf-Csk"/>
-                <constraint firstItem="h04-zJ-ESh" firstAttribute="leading" secondItem="FWz-eP-rMp" secondAttribute="trailing" constant="10" id="TEi-8z-v3Q"/>
-                <constraint firstItem="TWx-CB-fJo" firstAttribute="trailing" secondItem="NB2-m7-l19" secondAttribute="trailing" id="VCH-Tq-rlO"/>
-                <constraint firstItem="NB2-m7-l19" firstAttribute="centerY" secondItem="h04-zJ-ESh" secondAttribute="centerY" id="bqb-FK-hrI"/>
-                <constraint firstItem="409-nL-biZ" firstAttribute="leading" secondItem="W8O-AB-LV3" secondAttribute="trailing" constant="10" id="deY-h4-ZoJ"/>
-                <constraint firstItem="hDL-yw-0LU" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="15" id="dkJ-w9-c9G"/>
-                <constraint firstItem="409-nL-biZ" firstAttribute="top" secondItem="TWx-CB-fJo" secondAttribute="bottom" constant="15" id="dt0-uk-dz3"/>
-                <constraint firstItem="ECJ-jv-Anc" firstAttribute="top" secondItem="hDL-yw-0LU" secondAttribute="bottom" constant="10" id="gCU-6O-WXX"/>
-                <constraint firstAttribute="trailing" secondItem="409-nL-biZ" secondAttribute="trailing" constant="15" id="s4u-t9-FSg"/>
-                <constraint firstItem="FWz-eP-rMp" firstAttribute="top" secondItem="ECJ-jv-Anc" secondAttribute="bottom" constant="15" id="vJ3-2s-w1W"/>
-            </constraints>
-            <point key="canvasLocation" x="47.5" y="34.5"/>
-        </customView>
-    </objects>
-</document>

+ 7 - 11
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/KMStampListController.swift

@@ -56,7 +56,7 @@ class KMStampListController: NSViewController {
         collectionView.layer?.backgroundColor = NSColor.clear.cgColor
         collectionView.delegate = self
         collectionView.dataSource = self
-        collectionView.allowsEmptySelection = true
+        collectionView.allowsEmptySelection = false
         collectionView.allowsMultipleSelection = false
         
         collectionView.register(KMStampListItem.self, forItemWithIdentifier: NSUserInterfaceItemIdentifier(rawValue: "KMStampListItem"))
@@ -129,16 +129,15 @@ class KMStampListController: NSViewController {
     private func collectionViewSelectedChanged() {
         let indexs = collectionView.selectionIndexPaths
         
+        var idx = -1
         if indexs.count > 0 {
             for index in indexs {
-                
-                
+                idx = index.item
             }
-        } else {
-            
         }
-        DispatchQueue.main.async {
-            
+        if idx >= 0 && idx < stampObjects.count {
+            let stamp: CStampObject = stampObjects[idx]
+            pdfView?.setAddStamp(stamp, keepToolModel: true)
         }
     }
     
@@ -225,9 +224,6 @@ extension KMStampListController: NSCollectionViewDelegate, NSCollectionViewDataS
     public func collectionView(_ collectionView: NSCollectionView, didSelectItemsAt indexPaths: Set<IndexPath>) {
         collectionViewSelectedChanged()
     }
-    
-    public func collectionView(_ collectionView: NSCollectionView, didDeselectItemsAt indexPaths: Set<IndexPath>) {
-        collectionViewSelectedChanged()
-    }
+     
     
 }

+ 23 - 8
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/StampList/Views/KMStampListItem.swift

@@ -20,14 +20,13 @@ class KMStampListItem: NSCollectionViewItem {
     
     var signObject: KMSignature?
     
-    
-    
     deinit {
         if (self.area != nil) {
             self.view.removeTrackingArea(self.area!)
             self.area = nil
         }
     }
+    
     override func viewDidLoad() {
         super.viewDidLoad()
         // Do view setup here.
@@ -35,6 +34,17 @@ class KMStampListItem: NSCollectionViewItem {
         self.updateTrackingArea()
     }
     
+    override var isSelected: Bool {
+        get{
+            return super.isSelected
+        }
+        set{
+            super.isSelected = newValue
+            
+            refreshUI()
+        }
+    }
+    
     func updateTrackingArea() {
         if (self.area != nil) {
             self.view.removeTrackingArea(self.area!)
@@ -53,7 +63,6 @@ class KMStampListItem: NSCollectionViewItem {
             let image = signObject.pathsImage
             iconImage.image = image
         }
-         
     }
     
     func refreshUI() {
@@ -62,14 +71,20 @@ class KMStampListItem: NSCollectionViewItem {
             bottomBox.cornerRadius = currentValue
         }
 
-        if isMouseEnter {
+        if self.isSelected {
             bottomBox.borderWidth = 2
             bottomBox.borderColor = ComponentLibrary.shared.getComponentColorFromKey("colorPrimary/border1")
             bottomBox.fillColor = ComponentLibrary.shared.getComponentColorFromKey("colorPrimary/bg-opacity-light")
-         } else {
-             bottomBox.borderWidth = 0
-             bottomBox.borderColor = NSColor.clear
-             bottomBox.fillColor = NSColor.clear
+        } else {
+            if isMouseEnter {
+                bottomBox.borderWidth = 2
+                bottomBox.borderColor = ComponentLibrary.shared.getComponentColorFromKey("colorPrimary/border1")
+                bottomBox.fillColor = ComponentLibrary.shared.getComponentColorFromKey("colorPrimary/bg-opacity-light")
+             } else {
+                 bottomBox.borderWidth = 0
+                 bottomBox.borderColor = NSColor.clear
+                 bottomBox.fillColor = NSColor.clear
+            }
         }
     }
     

+ 0 - 1
PDF Office/PDF Master/PDF_Reader_Pro DMG-Bridging-Header.h

@@ -112,7 +112,6 @@
 #import "SKVersionNumber.h"
 #import "SKExportAccessoryController.h"
 
-#import "KMSignatureWindowController.h"
 #import "KMPageEditPopViewController.h"
 //广告
 #import "KMRecommondPopWindow.h"

+ 0 - 1
PDF Office/PDF Master/PDF_Reader_Pro Edition-Bridging-Header.h

@@ -108,7 +108,6 @@
 #import "SKVersionNumber.h"
 #import "SKExportAccessoryController.h"
 
-#import "KMSignatureWindowController.h"
 #import "KMPageEditPopViewController.h"
 
 //广告

+ 0 - 1
PDF Office/PDF Master/PDF_Reader_Pro-Bridging-Header.h

@@ -107,7 +107,6 @@
 #import "SKVersionNumber.h"
 #import "SKExportAccessoryController.h"
 
-#import "KMSignatureWindowController.h"
 #import "KMPageEditPopViewController.h"
 
 //广告

+ 2 - 110
PDF Office/PDF Reader Pro.xcodeproj/project.pbxproj

@@ -391,12 +391,6 @@
 		65FABB352C9AFB1F00AA92E5 /* KMSectionCellView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 65FABB342C9AFB1F00AA92E5 /* KMSectionCellView.xib */; };
 		65FABB362C9AFB1F00AA92E5 /* KMSectionCellView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 65FABB342C9AFB1F00AA92E5 /* KMSectionCellView.xib */; };
 		65FABB372C9AFB1F00AA92E5 /* KMSectionCellView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 65FABB342C9AFB1F00AA92E5 /* KMSectionCellView.xib */; };
-		89316822296D73CC0073EA59 /* KMSignatureAnnotationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 89316820296D73CC0073EA59 /* KMSignatureAnnotationViewController.m */; };
-		89316823296D73CC0073EA59 /* KMSignatureAnnotationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 89316820296D73CC0073EA59 /* KMSignatureAnnotationViewController.m */; };
-		89316824296D73CC0073EA59 /* KMSignatureAnnotationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 89316820296D73CC0073EA59 /* KMSignatureAnnotationViewController.m */; };
-		89316825296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89316821296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib */; };
-		89316826296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89316821296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib */; };
-		89316827296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89316821296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib */; };
 		89316855296E45CA0073EA59 /* KMImageAccessoryController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89316851296E45CA0073EA59 /* KMImageAccessoryController.xib */; };
 		89316856296E45CA0073EA59 /* KMImageAccessoryController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89316851296E45CA0073EA59 /* KMImageAccessoryController.xib */; };
 		89316857296E45CA0073EA59 /* KMImageAccessoryController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89316851296E45CA0073EA59 /* KMImageAccessoryController.xib */; };
@@ -520,9 +514,6 @@
 		89E4E755296427E5002DBA6F /* NSImage_SKExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 89E4E753296427E5002DBA6F /* NSImage_SKExtensions.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
 		89E4E756296427E5002DBA6F /* NSImage_SKExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 89E4E753296427E5002DBA6F /* NSImage_SKExtensions.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
 		89E4E757296427E5002DBA6F /* NSImage_SKExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 89E4E753296427E5002DBA6F /* NSImage_SKExtensions.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
-		89E4E77C2967B370002DBA6F /* KMDynamicStampViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89E4E7782967B370002DBA6F /* KMDynamicStampViewController.xib */; };
-		89E4E77D2967B370002DBA6F /* KMDynamicStampViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89E4E7782967B370002DBA6F /* KMDynamicStampViewController.xib */; };
-		89E4E77E2967B370002DBA6F /* KMDynamicStampViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89E4E7782967B370002DBA6F /* KMDynamicStampViewController.xib */; };
 		89E9B3F9295BE2EC00AEFA61 /* KMEditPDFTextPropertyViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89E9B3F8295BE2EC00AEFA61 /* KMEditPDFTextPropertyViewController.xib */; };
 		89E9B3FA295BE2EC00AEFA61 /* KMEditPDFTextPropertyViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89E9B3F8295BE2EC00AEFA61 /* KMEditPDFTextPropertyViewController.xib */; };
 		89E9B3FB295BE2EC00AEFA61 /* KMEditPDFTextPropertyViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 89E9B3F8295BE2EC00AEFA61 /* KMEditPDFTextPropertyViewController.xib */; };
@@ -1114,12 +1105,6 @@
 		9FB220DA2B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9FB220D62B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.xib */; };
 		9FB220DB2B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9FB220D62B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.xib */; };
 		9FB220DC2B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9FB220D62B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.xib */; };
-		9FB220DF2B10850400A5B208 /* KMAnnotationStampViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FB220DD2B10850400A5B208 /* KMAnnotationStampViewController.swift */; };
-		9FB220E02B10850400A5B208 /* KMAnnotationStampViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FB220DD2B10850400A5B208 /* KMAnnotationStampViewController.swift */; };
-		9FB220E12B10850400A5B208 /* KMAnnotationStampViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FB220DD2B10850400A5B208 /* KMAnnotationStampViewController.swift */; };
-		9FB220E22B10850400A5B208 /* KMAnnotationStampViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9FB220DE2B10850400A5B208 /* KMAnnotationStampViewController.xib */; };
-		9FB220E32B10850400A5B208 /* KMAnnotationStampViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9FB220DE2B10850400A5B208 /* KMAnnotationStampViewController.xib */; };
-		9FB220E42B10850400A5B208 /* KMAnnotationStampViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9FB220DE2B10850400A5B208 /* KMAnnotationStampViewController.xib */; };
 		9FB220EC2B185B3100A5B208 /* KMButtomCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FB220EB2B185B3100A5B208 /* KMButtomCell.swift */; };
 		9FB220ED2B185B3100A5B208 /* KMButtomCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FB220EB2B185B3100A5B208 /* KMButtomCell.swift */; };
 		9FB220EE2B185B3100A5B208 /* KMButtomCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FB220EB2B185B3100A5B208 /* KMButtomCell.swift */; };
@@ -1842,9 +1827,6 @@
 		AD59993E2AD7E88600412F8B /* KMStampManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD59993D2AD7E88600412F8B /* KMStampManager.swift */; };
 		AD59993F2AD7E88600412F8B /* KMStampManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD59993D2AD7E88600412F8B /* KMStampManager.swift */; };
 		AD5999402AD7E88600412F8B /* KMStampManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD59993D2AD7E88600412F8B /* KMStampManager.swift */; };
-		AD5999422AD8DC2000412F8B /* KMDynamicStampViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD5999412AD8DC2000412F8B /* KMDynamicStampViewController.swift */; };
-		AD5999432AD8DC2000412F8B /* KMDynamicStampViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD5999412AD8DC2000412F8B /* KMDynamicStampViewController.swift */; };
-		AD5999442AD8DC2000412F8B /* KMDynamicStampViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD5999412AD8DC2000412F8B /* KMDynamicStampViewController.swift */; };
 		AD61B7AD2A9DC6F600D346C1 /* KMResourceDownloadManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD61B7AA2A9DC6F500D346C1 /* KMResourceDownloadManager.swift */; };
 		AD62606E2A9D968A006C6413 /* KMEditPDFAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AD62606D2A9D968A006C6413 /* KMEditPDFAssets.xcassets */; };
 		AD62606F2A9D968B006C6413 /* KMEditPDFAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AD62606D2A9D968A006C6413 /* KMEditPDFAssets.xcassets */; };
@@ -2251,9 +2233,6 @@
 		ADDEEA6A2AD3CF3A00EF675D /* KMDrawSignatureView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA692AD3CF3A00EF675D /* KMDrawSignatureView.swift */; };
 		ADDEEA6B2AD3CF3A00EF675D /* KMDrawSignatureView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA692AD3CF3A00EF675D /* KMDrawSignatureView.swift */; };
 		ADDEEA6C2AD3CF3A00EF675D /* KMDrawSignatureView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA692AD3CF3A00EF675D /* KMDrawSignatureView.swift */; };
-		ADDEEA6E2AD3E16100EF675D /* KMSigntureViewItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA6D2AD3E16100EF675D /* KMSigntureViewItem.swift */; };
-		ADDEEA6F2AD3E16100EF675D /* KMSigntureViewItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA6D2AD3E16100EF675D /* KMSigntureViewItem.swift */; };
-		ADDEEA702AD3E16100EF675D /* KMSigntureViewItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA6D2AD3E16100EF675D /* KMSigntureViewItem.swift */; };
 		ADDEEA722AD3EFE200EF675D /* KMButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA712AD3EFE200EF675D /* KMButton.swift */; };
 		ADDEEA732AD3EFE200EF675D /* KMButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA712AD3EFE200EF675D /* KMButton.swift */; };
 		ADDEEA742AD3EFE200EF675D /* KMButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = ADDEEA712AD3EFE200EF675D /* KMButton.swift */; };
@@ -3816,12 +3795,6 @@
 		BB66472B2C06DD9C00924EE0 /* KMToolbarConfigTBItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB66472A2C06DD9C00924EE0 /* KMToolbarConfigTBItemView.swift */; };
 		BB66472C2C06DD9C00924EE0 /* KMToolbarConfigTBItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB66472A2C06DD9C00924EE0 /* KMToolbarConfigTBItemView.swift */; };
 		BB66472D2C06DD9C00924EE0 /* KMToolbarConfigTBItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB66472A2C06DD9C00924EE0 /* KMToolbarConfigTBItemView.swift */; };
-		BB6710612BC672260018CE54 /* KMSignatureWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB67105E2BC672230018CE54 /* KMSignatureWindowController.xib */; };
-		BB6710622BC672260018CE54 /* KMSignatureWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB67105E2BC672230018CE54 /* KMSignatureWindowController.xib */; };
-		BB6710632BC672260018CE54 /* KMSignatureWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB67105E2BC672230018CE54 /* KMSignatureWindowController.xib */; };
-		BB6710642BC672260018CE54 /* KMSignatureWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = BB6710602BC672250018CE54 /* KMSignatureWindowController.m */; };
-		BB6710652BC672260018CE54 /* KMSignatureWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = BB6710602BC672250018CE54 /* KMSignatureWindowController.m */; };
-		BB6710662BC672260018CE54 /* KMSignatureWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = BB6710602BC672250018CE54 /* KMSignatureWindowController.m */; };
 		BB6719E52AD28527003D44D5 /* CPDFLineAnnotation+PDFListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6719E42AD28527003D44D5 /* CPDFLineAnnotation+PDFListView.swift */; };
 		BB6719E62AD28527003D44D5 /* CPDFLineAnnotation+PDFListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6719E42AD28527003D44D5 /* CPDFLineAnnotation+PDFListView.swift */; };
 		BB6719E72AD28527003D44D5 /* CPDFLineAnnotation+PDFListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB6719E42AD28527003D44D5 /* CPDFLineAnnotation+PDFListView.swift */; };
@@ -4057,9 +4030,6 @@
 		BB7E59F62BBA427C0021E63D /* KMBrowserWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB7E59F52BBA427C0021E63D /* KMBrowserWindow.swift */; };
 		BB7E59F72BBA427C0021E63D /* KMBrowserWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB7E59F52BBA427C0021E63D /* KMBrowserWindow.swift */; };
 		BB7E59F82BBA427C0021E63D /* KMBrowserWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB7E59F52BBA427C0021E63D /* KMBrowserWindow.swift */; };
-		BB7F7BFA29AA469F00A3E4E7 /* KMSigntureViewItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB7F7BF629AA469F00A3E4E7 /* KMSigntureViewItem.xib */; };
-		BB7F7BFB29AA469F00A3E4E7 /* KMSigntureViewItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB7F7BF629AA469F00A3E4E7 /* KMSigntureViewItem.xib */; };
-		BB7F7BFC29AA469F00A3E4E7 /* KMSigntureViewItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB7F7BF629AA469F00A3E4E7 /* KMSigntureViewItem.xib */; };
 		BB7F7C0029AA586800A3E4E7 /* signAdd.png in Resources */ = {isa = PBXBuildFile; fileRef = BB7F7BFE29AA586800A3E4E7 /* signAdd.png */; };
 		BB7F7C0129AA586900A3E4E7 /* signAdd.png in Resources */ = {isa = PBXBuildFile; fileRef = BB7F7BFE29AA586800A3E4E7 /* signAdd.png */; };
 		BB7F7C0229AA586900A3E4E7 /* signAdd.png in Resources */ = {isa = PBXBuildFile; fileRef = BB7F7BFE29AA586800A3E4E7 /* signAdd.png */; };
@@ -4764,9 +4734,6 @@
 		BBC745F7296178BD0072C2ED /* KMCropTools.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC745F6296178BD0072C2ED /* KMCropTools.swift */; };
 		BBC745F8296178BD0072C2ED /* KMCropTools.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC745F6296178BD0072C2ED /* KMCropTools.swift */; };
 		BBC745F9296178BD0072C2ED /* KMCropTools.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC745F6296178BD0072C2ED /* KMCropTools.swift */; };
-		BBC821E32B0D9F72004B7E8E /* KMStampCreaterWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BBC821E22B0D9F72004B7E8E /* KMStampCreaterWindowController.xib */; };
-		BBC821E42B0D9F72004B7E8E /* KMStampCreaterWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BBC821E22B0D9F72004B7E8E /* KMStampCreaterWindowController.xib */; };
-		BBC821E52B0D9F72004B7E8E /* KMStampCreaterWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BBC821E22B0D9F72004B7E8E /* KMStampCreaterWindowController.xib */; };
 		BBC8A76D2B05EDDF00FA9377 /* KMThumbnail.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC8A76C2B05EDDE00FA9377 /* KMThumbnail.swift */; };
 		BBC8A76E2B05EDDF00FA9377 /* KMThumbnail.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC8A76C2B05EDDE00FA9377 /* KMThumbnail.swift */; };
 		BBC8A76F2B05EDDF00FA9377 /* KMThumbnail.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBC8A76C2B05EDDE00FA9377 /* KMThumbnail.swift */; };
@@ -5134,9 +5101,6 @@
 		BBF170582AE296B90013CE02 /* KMView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF170572AE296B90013CE02 /* KMView.swift */; };
 		BBF170592AE296B90013CE02 /* KMView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF170572AE296B90013CE02 /* KMView.swift */; };
 		BBF1705A2AE296B90013CE02 /* KMView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF170572AE296B90013CE02 /* KMView.swift */; };
-		BBF19E8F2B0B304C007154C8 /* KMStampCreaterWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF19E8E2B0B304C007154C8 /* KMStampCreaterWindowController.swift */; };
-		BBF19E902B0B304C007154C8 /* KMStampCreaterWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF19E8E2B0B304C007154C8 /* KMStampCreaterWindowController.swift */; };
-		BBF19E912B0B304C007154C8 /* KMStampCreaterWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF19E8E2B0B304C007154C8 /* KMStampCreaterWindowController.swift */; };
 		BBF19E992B0B3218007154C8 /* KMAnnotationStamp.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF19E982B0B3218007154C8 /* KMAnnotationStamp.swift */; };
 		BBF19E9A2B0B3218007154C8 /* KMAnnotationStamp.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF19E982B0B3218007154C8 /* KMAnnotationStamp.swift */; };
 		BBF19E9B2B0B3218007154C8 /* KMAnnotationStamp.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBF19E982B0B3218007154C8 /* KMAnnotationStamp.swift */; };
@@ -5834,9 +5798,6 @@
 		65F9F48D2CFCABE700F187A8 /* KMNBotaSearchTopView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMNBotaSearchTopView.xib; sourceTree = "<group>"; };
 		65FABB302C9AFB0C00AA92E5 /* KMSectionCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSectionCellView.swift; sourceTree = "<group>"; };
 		65FABB342C9AFB1F00AA92E5 /* KMSectionCellView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMSectionCellView.xib; sourceTree = "<group>"; };
-		8931681F296D73CC0073EA59 /* KMSignatureAnnotationViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KMSignatureAnnotationViewController.h; sourceTree = "<group>"; };
-		89316820296D73CC0073EA59 /* KMSignatureAnnotationViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KMSignatureAnnotationViewController.m; sourceTree = "<group>"; };
-		89316821296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMSignatureAnnotationViewController.xib; sourceTree = "<group>"; };
 		89316851296E45CA0073EA59 /* KMImageAccessoryController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMImageAccessoryController.xib; sourceTree = "<group>"; };
 		8942F7EE2926087200389627 /* KMSearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSearchViewController.swift; sourceTree = "<group>"; };
 		8942F7EF2926087200389627 /* KMSearchViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMSearchViewController.xib; sourceTree = "<group>"; };
@@ -5881,7 +5842,6 @@
 		89E4E73C2964160F002DBA6F /* KMAnnotationLinkViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMAnnotationLinkViewController.xib; sourceTree = "<group>"; };
 		89E4E753296427E5002DBA6F /* NSImage_SKExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSImage_SKExtensions.m; sourceTree = "<group>"; };
 		89E4E754296427E5002DBA6F /* NSImage_SKExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSImage_SKExtensions.h; sourceTree = "<group>"; };
-		89E4E7782967B370002DBA6F /* KMDynamicStampViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMDynamicStampViewController.xib; sourceTree = "<group>"; };
 		89E9B3F8295BE2EC00AEFA61 /* KMEditPDFTextPropertyViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMEditPDFTextPropertyViewController.xib; sourceTree = "<group>"; };
 		9F00CCB32A2F1E0100AC462E /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
 		9F00CCB72A2F1E0F00AC462E /* dsa_priv.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_priv.pem; sourceTree = "<group>"; };
@@ -6131,8 +6091,6 @@
 		9FAAA338290F72CC0046FFCE /* KMHistoryFileCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMHistoryFileCollectionView.swift; sourceTree = "<group>"; };
 		9FB220D52B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMAnnotationSelectLinkViewController.swift; sourceTree = "<group>"; };
 		9FB220D62B0F4ED400A5B208 /* KMAnnotationSelectLinkViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMAnnotationSelectLinkViewController.xib; sourceTree = "<group>"; };
-		9FB220DD2B10850400A5B208 /* KMAnnotationStampViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMAnnotationStampViewController.swift; sourceTree = "<group>"; };
-		9FB220DE2B10850400A5B208 /* KMAnnotationStampViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMAnnotationStampViewController.xib; sourceTree = "<group>"; };
 		9FB220EB2B185B3100A5B208 /* KMButtomCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMButtomCell.swift; sourceTree = "<group>"; };
 		9FB220F02B1863C800A5B208 /* KMAnnotationFromSignature.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMAnnotationFromSignature.swift; sourceTree = "<group>"; };
 		9FB220F52B186C9800A5B208 /* KMAnnotationGeneralViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMAnnotationGeneralViewController.swift; sourceTree = "<group>"; };
@@ -6413,7 +6371,6 @@
 		AD58F41E2B1DC29100299EE0 /* KMPrintViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMPrintViewModel.swift; sourceTree = "<group>"; };
 		AD5999352AD7D9C200412F8B /* KMPropertiesViewPopController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMPropertiesViewPopController.swift; sourceTree = "<group>"; };
 		AD59993D2AD7E88600412F8B /* KMStampManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMStampManager.swift; sourceTree = "<group>"; };
-		AD5999412AD8DC2000412F8B /* KMDynamicStampViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMDynamicStampViewController.swift; sourceTree = "<group>"; };
 		AD61B7AA2A9DC6F500D346C1 /* KMResourceDownloadManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KMResourceDownloadManager.swift; sourceTree = "<group>"; };
 		AD62606D2A9D968A006C6413 /* KMEditPDFAssets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = KMEditPDFAssets.xcassets; sourceTree = "<group>"; };
 		AD7D5C802B8ECD09006562CD /* KMPDFSynchronizer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMPDFSynchronizer.swift; sourceTree = "<group>"; };
@@ -6564,7 +6521,6 @@
 		ADDEEA612AD3A6E700EF675D /* KMTextSignatureView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMTextSignatureView.swift; sourceTree = "<group>"; };
 		ADDEEA652AD3C4BE00EF675D /* KMPDFSignatureImageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMPDFSignatureImageView.swift; sourceTree = "<group>"; };
 		ADDEEA692AD3CF3A00EF675D /* KMDrawSignatureView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMDrawSignatureView.swift; sourceTree = "<group>"; };
-		ADDEEA6D2AD3E16100EF675D /* KMSigntureViewItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMSigntureViewItem.swift; sourceTree = "<group>"; };
 		ADDEEA712AD3EFE200EF675D /* KMButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMButton.swift; sourceTree = "<group>"; };
 		ADDEEA792AD3F4C800EF675D /* KMPopUpButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMPopUpButton.swift; sourceTree = "<group>"; };
 		ADDEEA7D2AD3FB1D00EF675D /* KMImageAccessoryController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMImageAccessoryController.swift; sourceTree = "<group>"; };
@@ -7193,9 +7149,6 @@
 		BB65A07B2AF8E5A4003A27A0 /* KMLineWell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMLineWell.swift; sourceTree = "<group>"; };
 		BB65A07F2AF8FE7A003A27A0 /* KMBatchOperateRemoveHeaderFooterViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMBatchOperateRemoveHeaderFooterViewController.swift; sourceTree = "<group>"; };
 		BB66472A2C06DD9C00924EE0 /* KMToolbarConfigTBItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMToolbarConfigTBItemView.swift; sourceTree = "<group>"; };
-		BB67105E2BC672230018CE54 /* KMSignatureWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMSignatureWindowController.xib; sourceTree = "<group>"; };
-		BB67105F2BC672240018CE54 /* KMSignatureWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KMSignatureWindowController.h; sourceTree = "<group>"; };
-		BB6710602BC672250018CE54 /* KMSignatureWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KMSignatureWindowController.m; sourceTree = "<group>"; };
 		BB6719E42AD28527003D44D5 /* CPDFLineAnnotation+PDFListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CPDFLineAnnotation+PDFListView.swift"; sourceTree = "<group>"; };
 		BB6719E82AD2A57C003D44D5 /* CPDFLinkAnnotation+PDFListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CPDFLinkAnnotation+PDFListView.swift"; sourceTree = "<group>"; };
 		BB6719F42AD2C949003D44D5 /* CPDFRedactAnnotation+PDFListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "CPDFRedactAnnotation+PDFListView.swift"; sourceTree = "<group>"; };
@@ -7288,7 +7241,6 @@
 		BB79FAB12CDC65BA00BF7B39 /* KMBGTemplateController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMBGTemplateController.xib; sourceTree = "<group>"; };
 		BB7BC4D72AD3D6B700D6BEE6 /* PDFListView+KMExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "PDFListView+KMExtensions.swift"; sourceTree = "<group>"; };
 		BB7E59F52BBA427C0021E63D /* KMBrowserWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMBrowserWindow.swift; sourceTree = "<group>"; };
-		BB7F7BF629AA469F00A3E4E7 /* KMSigntureViewItem.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMSigntureViewItem.xib; sourceTree = "<group>"; };
 		BB7F7BFE29AA586800A3E4E7 /* signAdd.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = signAdd.png; sourceTree = "<group>"; };
 		BB7F7BFF29AA586800A3E4E7 /* signAddBack.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = signAddBack.png; sourceTree = "<group>"; };
 		BB7FF5062A60E84400901C2D /* KMEnumExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMEnumExtensions.swift; sourceTree = "<group>"; };
@@ -7587,7 +7539,6 @@
 		BBC70EAF2AEA80EC00AC1585 /* KMToolbarCustomWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMToolbarCustomWindowController.swift; sourceTree = "<group>"; };
 		BBC70EB32AEA847500AC1585 /* KMToolbarCustomViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMToolbarCustomViewController.swift; sourceTree = "<group>"; };
 		BBC745F6296178BD0072C2ED /* KMCropTools.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMCropTools.swift; sourceTree = "<group>"; };
-		BBC821E22B0D9F72004B7E8E /* KMStampCreaterWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMStampCreaterWindowController.xib; sourceTree = "<group>"; };
 		BBC8A76C2B05EDDE00FA9377 /* KMThumbnail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMThumbnail.swift; sourceTree = "<group>"; };
 		BBCB9EA42CCDF65000563AC8 /* KMNDisplayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMNDisplayViewController.swift; sourceTree = "<group>"; };
 		BBCB9EA52CCDF65000563AC8 /* KMNDisplayViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KMNDisplayViewController.xib; sourceTree = "<group>"; };
@@ -7741,7 +7692,6 @@
 		BBEF0F992B84A4C200A3E102 /* KMBrowserWindowController+PPTMode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "KMBrowserWindowController+PPTMode.swift"; sourceTree = "<group>"; };
 		BBEFD0232AFA065F003FABD8 /* KMBatchAddHeaderFooterOperation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMBatchAddHeaderFooterOperation.swift; sourceTree = "<group>"; };
 		BBF170572AE296B90013CE02 /* KMView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMView.swift; sourceTree = "<group>"; };
-		BBF19E8E2B0B304C007154C8 /* KMStampCreaterWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMStampCreaterWindowController.swift; sourceTree = "<group>"; };
 		BBF19E982B0B3218007154C8 /* KMAnnotationStamp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMAnnotationStamp.swift; sourceTree = "<group>"; };
 		BBF62C672B033B34007B7E86 /* KMPDFEditExtractWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KMPDFEditExtractWindow.swift; sourceTree = "<group>"; };
 		BBF62C6B2B033B5A007B7E86 /* KMPDFEditExtractWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KMPDFEditExtractWindow.xib; sourceTree = "<group>"; };
@@ -8525,8 +8475,9 @@
 				BBC5ABD62D01C411008BA0CB /* KMSignatureListController.xib */,
 				BBC5ABDD2D01C950008BA0CB /* KMSignatureController.swift */,
 				BBC5ABDE2D01C950008BA0CB /* KMSignatureController.xib */,
+				ADDEEA7D2AD3FB1D00EF675D /* KMImageAccessoryController.swift */,
+				89316851296E45CA0073EA59 /* KMImageAccessoryController.xib */,
 				BB6B49AD2D02A0B9003ECD26 /* CreateSignWindowController */,
-				BB2F78AD2D01FA4600F6B636 /* Old */,
 			);
 			path = Signature;
 			sourceTree = "<group>";
@@ -12295,23 +12246,6 @@
 			path = Base;
 			sourceTree = "<group>";
 		};
-		BB2F78AD2D01FA4600F6B636 /* Old */ = {
-			isa = PBXGroup;
-			children = (
-				ADDEEA7D2AD3FB1D00EF675D /* KMImageAccessoryController.swift */,
-				89316851296E45CA0073EA59 /* KMImageAccessoryController.xib */,
-				ADDEEA6D2AD3E16100EF675D /* KMSigntureViewItem.swift */,
-				BB7F7BF629AA469F00A3E4E7 /* KMSigntureViewItem.xib */,
-				BB67105F2BC672240018CE54 /* KMSignatureWindowController.h */,
-				BB6710602BC672250018CE54 /* KMSignatureWindowController.m */,
-				BB67105E2BC672230018CE54 /* KMSignatureWindowController.xib */,
-				8931681F296D73CC0073EA59 /* KMSignatureAnnotationViewController.h */,
-				89316820296D73CC0073EA59 /* KMSignatureAnnotationViewController.m */,
-				89316821296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib */,
-			);
-			path = Old;
-			sourceTree = "<group>";
-		};
 		BB2F9A9E2AFC8D1100F9DD93 /* SelfSign */ = {
 			isa = PBXGroup;
 			children = (
@@ -14240,10 +14174,6 @@
 				BBB376942B10A7EA009539CC /* images */,
 				BBF19E972B0B31F7007154C8 /* View */,
 				BBF19E962B0B31DF007154C8 /* Controller */,
-				AD5999412AD8DC2000412F8B /* KMDynamicStampViewController.swift */,
-				89E4E7782967B370002DBA6F /* KMDynamicStampViewController.xib */,
-				9FB220DD2B10850400A5B208 /* KMAnnotationStampViewController.swift */,
-				9FB220DE2B10850400A5B208 /* KMAnnotationStampViewController.xib */,
 			);
 			path = CreateStamp;
 			sourceTree = "<group>";
@@ -14251,8 +14181,6 @@
 		BBF19E962B0B31DF007154C8 /* Controller */ = {
 			isa = PBXGroup;
 			children = (
-				BBF19E8E2B0B304C007154C8 /* KMStampCreaterWindowController.swift */,
-				BBC821E22B0D9F72004B7E8E /* KMStampCreaterWindowController.xib */,
 			);
 			path = Controller;
 			sourceTree = "<group>";
@@ -15242,18 +15170,15 @@
 				BB19A73E2CB7B4D1008204DC /* KMHomeRightView.xib in Resources */,
 				6536FDEB2C9C49C0004A0FB9 /* KMNoteFooterCellView.xib in Resources */,
 				BB7256B62CDB816100B6CE64 /* KMBackgroundPropertyController.xib in Resources */,
-				BB7F7BFA29AA469F00A3E4E7 /* KMSigntureViewItem.xib in Resources */,
 				ADAFDA0D2AE8DD6600F084BC /* KMAdvertisementCollectionViewItem.xib in Resources */,
 				9F1F82E62934D5240092C4B4 /* KMHomeExtractActionViewController.xib in Resources */,
 				AD3AAD5F2B0DA3D400DE5FE7 /* KMCompareTextViewItem.xib in Resources */,
 				AD85D1BD2AF0D2DD000F4D28 /* KMHomeQuickToolsCollectionView.xib in Resources */,
 				BB031B8A2C47BB090099F7AD /* KMUserFbDespItemView.xib in Resources */,
 				BBEB0DE32CE36B47004C67BF /* KMRightSideController.xib in Resources */,
-				89E4E77C2967B370002DBA6F /* KMDynamicStampViewController.xib in Resources */,
 				BBE788C62CBD2463008086E2 /* SelectVC.xib in Resources */,
 				9FDCD8192B6CC88000E22166 /* KMFormActionButtonPopWindowController.xib in Resources */,
 				89316855296E45CA0073EA59 /* KMImageAccessoryController.xib in Resources */,
-				9FB220E22B10850400A5B208 /* KMAnnotationStampViewController.xib in Resources */,
 				AD2432D32B89DFF800A119A9 /* KMFormAlertView.xib in Resources */,
 				BB451AAD2CF59F68003E1565 /* KMNoteController.xib in Resources */,
 				AD07BCF02D02D6A60075054B /* KMBatchOperateRemoveHeaderFooterViewController.xib in Resources */,
@@ -15533,7 +15458,6 @@
 				BBE0689D2CDDF137000512BC /* KMBatesTemplateController.xib in Resources */,
 				BBE788F02CBD2464008086E2 /* ModalVC.xib in Resources */,
 				9F94747F29FA24200042F949 /* Credits.rtf in Resources */,
-				89316825296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib in Resources */,
 				9FBA0EE928FFC2FE001117AF /* Image.xcassets in Resources */,
 				BBA19F3229ADAC81001A285A /* signPicture_hover.pdf in Resources */,
 				BB88107F2B4F7A1F00AFA63E /* KMActivityALertViewController.xib in Resources */,
@@ -15581,7 +15505,6 @@
 				9FF816E12AFA5BA80087EFC5 /* KMAnnotationTableViewController.xib in Resources */,
 				F30B22882CB8D9630041002E /* KMNQuickToolCollectionViewItem.xib in Resources */,
 				AD867FAA29DFB78200F00440 /* KMAnnotationOutlineView.xib in Resources */,
-				BBC821E32B0D9F72004B7E8E /* KMStampCreaterWindowController.xib in Resources */,
 				BB03D6A02B024AC8008C9976 /* KMPDFEditInsertPageWindow.xib in Resources */,
 				AD1D48252AFB6BCB007AC1F0 /* KMMergeView.xib in Resources */,
 				BB5A9D332CB6520100F64C1F /* home.xcassets in Resources */,
@@ -15669,7 +15592,6 @@
 				BB38D2D42D047A920039F106 /* KMMeasureController.xib in Resources */,
 				ADFCEB482B4FBA440001EBAF /* RemoteConfigDefaults.plist in Resources */,
 				ADFA8F0D2B579957002595A4 /* KMSearchFindView.xib in Resources */,
-				BB6710612BC672260018CE54 /* KMSignatureWindowController.xib in Resources */,
 				F337CC3A2CC6686100D46AF4 /* KMNThumbnailCollectionViewItem.xib in Resources */,
 				BBFA1CD12B609EC50053AD4A /* KMScreenShotMaskWindowController.xib in Resources */,
 				9FDD0FA22952FF4D000C4DAD /* $themes.json in Resources */,
@@ -15900,7 +15822,6 @@
 				AD2BF2322B5620110029F03F /* SF-Pro-Text-Regular.otf in Resources */,
 				BBE068A62CDDF149000512BC /* KMBatesTemplateItem.xib in Resources */,
 				BB031B792C47BB090099F7AD /* KMUserListItemView.xib in Resources */,
-				BB7F7BFB29AA469F00A3E4E7 /* KMSigntureViewItem.xib in Resources */,
 				BBC70EAA2AEA6EF800AC1585 /* KMToolbarCustomWindowController.xib in Resources */,
 				F3A9DC82294309D80074E5D2 /* CPDFListEditAnnotationViewController.xib in Resources */,
 				8942F7F42926087200389627 /* KMSearchViewController.xib in Resources */,
@@ -15925,7 +15846,6 @@
 				ADDF837B2B391A5D00A81A4E /* CDSignatureTextViewController.xib in Resources */,
 				AD1D480C2AFB18DA007AC1F0 /* KMCompressWindowController.xib in Resources */,
 				AD1D48142AFB1912007AC1F0 /* KMCompressView.xib in Resources */,
-				89E4E77D2967B370002DBA6F /* KMDynamicStampViewController.xib in Resources */,
 				BB1B0B0B2B4FC6E900889528 /* KMGuideInfoWindow.xib in Resources */,
 				AD867FAB29DFB78200F00440 /* KMAnnotationOutlineView.xib in Resources */,
 				AD07BC8F2D02CBA90075054B /* KMCompressSettingViewController.xib in Resources */,
@@ -15980,7 +15900,6 @@
 				AD199DE22B200FB000D56FEE /* KMPrintPosterView.xib in Resources */,
 				ADB2D6FE294882B70029D2B3 /* KMTextFieldStepperView.xib in Resources */,
 				9F221ED329A85D3700978A59 /* KMDesignBase.xib in Resources */,
-				9FB220E32B10850400A5B208 /* KMAnnotationStampViewController.xib in Resources */,
 				ADB2D6EA294740F30029D2B3 /* KMPrintPaperSetWindowController.xib in Resources */,
 				AD867FB829DFBB3200F00440 /* KMAnnotationOutlineCellView.xib in Resources */,
 				AD1CA4252A061D190070541F /* KMAnnotationScreenAuthorViewItem.xib in Resources */,
@@ -16188,7 +16107,6 @@
 				9FE0BBF42B0F2FB000CD1CAC /* KMAnnotationLineWindowController.xib in Resources */,
 				ADD1B6D029431D7100C3FFF7 /* KMPrintPreviewView.xib in Resources */,
 				BB8810982B4F7CD100AFA63E /* KMVerificationTrialViewController.xib in Resources */,
-				BBC821E42B0D9F72004B7E8E /* KMStampCreaterWindowController.xib in Resources */,
 				BB73F28C2C63147E00131EE7 /* KMUnbindAlertViewController.xib in Resources */,
 				AD3AAD4E2B0B7B9300DE5FE7 /* KMCompareTextView.xib in Resources */,
 				9F853A062947137500DF644E /* newtab_h.pdf in Resources */,
@@ -16314,7 +16232,6 @@
 				BB19A7642CB7CFBC008204DC /* KMHomeQuickToolsView.xib in Resources */,
 				9FDCD81A2B6CC88000E22166 /* KMFormActionButtonPopWindowController.xib in Resources */,
 				BB6347B92AF224E200F5438E /* KMConvertCollectionViewHeader.xib in Resources */,
-				BB6710622BC672260018CE54 /* KMSignatureWindowController.xib in Resources */,
 				AD07BC922D02CBA90075054B /* KMBatchOperateCompressViewController.xib in Resources */,
 				BB5DA54E2BCFF4B300849E86 /* KMPageEditPopViewController.xib in Resources */,
 				653647D12CDCA6CC00CDB13E /* KMBatchOperateBaseViewController.xib in Resources */,
@@ -16327,7 +16244,6 @@
 				BB3A429B2B4BC75D006D0642 /* NotesPanel.xib in Resources */,
 				BBB789B82BE8BF2400F7E09C /* AIChatDefaultTIpItem.xib in Resources */,
 				BB91383A2CEE089C00BAB4A7 /* KMCropController.xib in Resources */,
-				89316826296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib in Resources */,
 				BB2EDF50296E63E5003BCF58 /* KMPageEditInsertCustomPageWindowController.xib in Resources */,
 				AD3AAD572B0D87E500DE5FE7 /* KMCompareThumbItem.xib in Resources */,
 				9F0CB4AB296CF19600007028 /* KMPropertiesPanelListMenuSubVC.xib in Resources */,
@@ -16373,7 +16289,6 @@
 				9F00CCBC2A2F1E0F00AC462E /* dsa_pub.pem in Resources */,
 				BBB789C52BE8BF2400F7E09C /* AIRedoConfirmView.xib in Resources */,
 				658FDBAF2C9D4B9600EFA72E /* KMNoteReplyCellView.xib in Resources */,
-				9FB220E42B10850400A5B208 /* KMAnnotationStampViewController.xib in Resources */,
 				651961AD2D07DD4A007A4324 /* KMBookMarkViewController.xib in Resources */,
 				AD199DED2B230B1300D56FEE /* KMPrintMultipageView.xib in Resources */,
 				9F0ACC092C883464009574D5 /* KMEmbeddedPaymentPopWC.xib in Resources */,
@@ -16582,7 +16497,6 @@
 				AD1FE81C2BD7C98300AA4A9B /* KMPDFMultiplePrintWindowController.xib in Resources */,
 				BBD14F5C2CDA02640077D52E /* KMEditToolbarView.xib in Resources */,
 				899700FB28F4051B009AF911 /* KMAnnotationViewController.xib in Resources */,
-				BBC821E52B0D9F72004B7E8E /* KMStampCreaterWindowController.xib in Resources */,
 				BB4DFD5F2CFDA9E600026C8B /* KMStampListController.xib in Resources */,
 				BB7F7C0229AA586900A3E4E7 /* signAdd.png in Resources */,
 				ADD1B6CD2942E85300C3FFF7 /* KMPrintBottomView.xib in Resources */,
@@ -16751,7 +16665,6 @@
 				BB1B0AC42B4FC6E900889528 /* KMFunctionGuideWindowController.xib in Resources */,
 				BBC4F9F02AEB58470098A1A8 /* KMAlertWindowController.xib in Resources */,
 				BBBE20992B21B1DF00509C4E /* KMPDFInsertWindowController.xib in Resources */,
-				BB6710632BC672260018CE54 /* KMSignatureWindowController.xib in Resources */,
 				F35BC6CE2CA3AD710022CDE9 /* Shaders.bundle in Resources */,
 				ADBC2CF7299C7B3E006280C8 /* Print.xcassets in Resources */,
 				9F0CB48C29683DC400007028 /* KMPropertiesPanelPresetColorSubVC.xib in Resources */,
@@ -16770,7 +16683,6 @@
 				AD1CA4362A0640FC0070541F /* KMAnnotationScreenHeadView.xib in Resources */,
 				BB451A972CF59F3F003E1565 /* KMTextBoxController.xib in Resources */,
 				BBA19F3429ADAC81001A285A /* signPicture_hover.pdf in Resources */,
-				89E4E77E2967B370002DBA6F /* KMDynamicStampViewController.xib in Resources */,
 				ADFA8F172B60E02B002595A4 /* KMSecureAlertView.xib in Resources */,
 				BBE788922CBD2463008086E2 /* InputNumberVC.xib in Resources */,
 				BB5A9D632CB6521400F64C1F /* KMPDFToolbarController.xib in Resources */,
@@ -16793,7 +16705,6 @@
 				9F5752EE2B58FF73005DC303 /* KMAnnotationFromViewController.xib in Resources */,
 				AD1CA4052A06040B0070541F /* KMAnnotationScreenCollectionView.xib in Resources */,
 				BB9007052B8DDCE400623B78 /* SyncPreferences.xib in Resources */,
-				BB7F7BFC29AA469F00A3E4E7 /* KMSigntureViewItem.xib in Resources */,
 				BB716D6D2CDDB727009787ED /* KMHeaderPropertyController.xib in Resources */,
 				AD3AAD4F2B0B7B9300DE5FE7 /* KMCompareTextView.xib in Resources */,
 				BB65A0522AF8B64B003A27A0 /* DisplayPreferences.xib in Resources */,
@@ -16816,7 +16727,6 @@
 				AD1CA4262A061D190070541F /* KMAnnotationScreenAuthorViewItem.xib in Resources */,
 				BB4F7E9B2B0C858D0077EC8C /* KMNoteTypeCollectionViewItem.xib in Resources */,
 				BBB3769D2B10A7FD009539CC /* a_2a.png in Resources */,
-				89316827296D73CC0073EA59 /* KMSignatureAnnotationViewController.xib in Resources */,
 				BB24D4AC2977BE6700041659 /* KMRedactConfirmWindowController.xib in Resources */,
 				BBE788A72CBD2463008086E2 /* SliderVC.xib in Resources */,
 				BB451AA72CF59F5B003E1565 /* KMRectangleController.xib in Resources */,
@@ -17111,7 +17021,6 @@
 				BB1B0ABF2B4FC6E900889528 /* KMGuideInfoWindowController.swift in Sources */,
 				BB77C85F2BD506BE0065AFF2 /* CPDFAnnotation+KMExtension.swift in Sources */,
 				BB853C9D2AF8E436009C20C1 /* KMBatchRemovePasswordOperation.swift in Sources */,
-				AD5999422AD8DC2000412F8B /* KMDynamicStampViewController.swift in Sources */,
 				BBC3482429559506008D2CD1 /* KMBackgroundManager.swift in Sources */,
 				AD867FC529DFFBC400F00440 /* KMAnnotationOutlineRowView.swift in Sources */,
 				BB4EEF2D29763EE7003A3537 /* KMRedactBaseWindowController.swift in Sources */,
@@ -17128,7 +17037,6 @@
 				BBA8B7AA2935DC120097D183 /* KMRemovePasswordResultTipView.swift in Sources */,
 				BBF729B72B19632C00576AC5 /* KMRemoveBatesOperationQueue.swift in Sources */,
 				AD9527CA295297B70039D2BC /* KMPrintModel.swift in Sources */,
-				BB6710642BC672260018CE54 /* KMSignatureWindowController.m in Sources */,
 				9FD0FA4B29D43D6800F2AB0D /* KMDeviceBrowserWindowController.swift in Sources */,
 				BBE788BA2CBD2463008086E2 /* AlertControllerVC.swift in Sources */,
 				BB2C84782BAE71E400AF6142 /* KMBotaTableView.swift in Sources */,
@@ -17839,7 +17747,6 @@
 				89D2D2C129495D2100BFF5FE /* KMFormModel.swift in Sources */,
 				BB7185412C2B0AAF00C1156B /* KMEditPDFToolbarItemView.swift in Sources */,
 				BBE7891D2CBD2464008086E2 /* SegmentedVC.swift in Sources */,
-				89316822296D73CC0073EA59 /* KMSignatureAnnotationViewController.m in Sources */,
 				BBB14A6329792D6900936EDB /* KMRedactPageRangeContentView.swift in Sources */,
 				BB6B436B2A04935000E02B54 /* KMPDFThumbViewBaseController.swift in Sources */,
 				BB88E43B294023CB002B3655 /* KMDocumentModel.swift in Sources */,
@@ -17910,7 +17817,6 @@
 				BB2C847B2BAE71E400AF6142 /* KMThumbnailTableView.swift in Sources */,
 				9F1FE4C029406E4700E952CA /* NSWindow+CTThemed.m in Sources */,
 				9F0CB48729683DC400007028 /* KMPropertiesPanelPresetColorSubVC.swift in Sources */,
-				9FB220DF2B10850400A5B208 /* KMAnnotationStampViewController.swift in Sources */,
 				9F1FE50229406E4700E952CA /* CTTabStripModelOrderController.m in Sources */,
 				651559192CCA6E3100C0F0D9 /* KMConvertWordWindowController.swift in Sources */,
 				9F1F82E32934D5240092C4B4 /* KMHomeExtractActionViewController.swift in Sources */,
@@ -17999,7 +17905,6 @@
 				9F1FE49C29406E4700E952CA /* HoverCloseButton.m in Sources */,
 				BB90E4F22AF37F9F00B04B9F /* KMCustomViewButton.swift in Sources */,
 				AD9527D72952ED970039D2BC /* KMPrintPresenter_C.swift in Sources */,
-				ADDEEA6E2AD3E16100EF675D /* KMSigntureViewItem.swift in Sources */,
 				BBA00AC42B157C880043D903 /* KMToolbarZoomItemView.swift in Sources */,
 				BB853C992AF8E39D009C20C1 /* KMRemovePasswordOperationQueue.swift in Sources */,
 				BB31981A2AC567B500107371 /* CPDFSelection+PDFListView.swift in Sources */,
@@ -18129,7 +18034,6 @@
 				656C1E522CD0D27D00295F82 /* KMConvertHtmlSettingView.swift in Sources */,
 				BB03085C2CC7A40A00F4AAC7 /* KMPDFSideBarController.swift in Sources */,
 				9F3D818729A0A9A60087B5AD /* KMDesignButton.swift in Sources */,
-				BBF19E8F2B0B304C007154C8 /* KMStampCreaterWindowController.swift in Sources */,
 				BB3D971A2B3060B5007094C8 /* KMPDFAnnotationRedactConfig.swift in Sources */,
 				BB14703B299DC0D200784A6A /* OIDErrorUtilities.m in Sources */,
 				BB853C862AF8BC12009C20C1 /* KMAddPasswordOperationQueue.swift in Sources */,
@@ -18292,7 +18196,6 @@
 				BB46CF4D2AFBB34900281EDF /* AutoSaveManager.swift in Sources */,
 				F30B22862CB8D9630041002E /* KMNQuickToolCollectionViewItem.swift in Sources */,
 				654E63322CF5993C00F6323F /* KMNOutlineModel.swift in Sources */,
-				9FB220E02B10850400A5B208 /* KMAnnotationStampViewController.swift in Sources */,
 				BBD426802B4FCF1500AC8660 /* KMTextFieldCell.swift in Sources */,
 				BB7185392C2B0A1100C1156B /* KMEditPDFPopToolBarWindow.swift in Sources */,
 				BBA00AC52B157C880043D903 /* KMToolbarZoomItemView.swift in Sources */,
@@ -18710,7 +18613,6 @@
 				BB77C8602BD506BE0065AFF2 /* CPDFAnnotation+KMExtension.swift in Sources */,
 				BB146FE2299DC0D100784A6A /* GTLRDriveQuery.m in Sources */,
 				BB4583C02CC8C53C005737F3 /* KMPDFToolbarConfig.swift in Sources */,
-				AD5999432AD8DC2000412F8B /* KMDynamicStampViewController.swift in Sources */,
 				BBD1F794296FE92500343885 /* KMPageEditSplitSettingView.swift in Sources */,
 				BB072D5F2C05AC8F00779B45 /* KMToolbarConfigViewItem.swift in Sources */,
 				F38FB9402CBA535C00F0DBA5 /* KMNHomeQuickToolManager.swift in Sources */,
@@ -18740,7 +18642,6 @@
 				ADDF83AE2B391A5D00A81A4E /* DSignatureConfig.swift in Sources */,
 				BB6347C52AF24F6300F5438E /* KMBatchoperateConvertCollectionViewItem.swift in Sources */,
 				BB1B0AC92B4FC6E900889528 /* KMGuideConfig.swift in Sources */,
-				BB6710652BC672260018CE54 /* KMSignatureWindowController.m in Sources */,
 				ADAFDA1A2AE8DD6600F084BC /* KMAdvertisementTableView.swift in Sources */,
 				BB42937B2D030BE3007ECFF2 /* KMCreateStampWindowController.swift in Sources */,
 				BBE788852CBD2463008086E2 /* WCCompWindowController.swift in Sources */,
@@ -19089,7 +18990,6 @@
 				89D2D2C229495D2100BFF5FE /* KMFormModel.swift in Sources */,
 				BB6DD815293486FA001F0544 /* KMSecureEncryptPasswordCellView.swift in Sources */,
 				BB19A7502CB7C710008204DC /* KMHistoryFileThumbItem.swift in Sources */,
-				89316823296D73CC0073EA59 /* KMSignatureAnnotationViewController.m in Sources */,
 				ADDF83422B391A5C00A81A4E /* DSignatureConfigWindowController.swift in Sources */,
 				AD055E7F2B88294F0035F824 /* SKBookmarkSheetController.m in Sources */,
 				BB88E43C294023CB002B3655 /* KMDocumentModel.swift in Sources */,
@@ -19195,7 +19095,6 @@
 				BB2C84672BAE716600AF6142 /* KMPopupMenuObject.swift in Sources */,
 				BBA8B6702B9027D700CB07B0 /* SKFileUpdateChecker.m in Sources */,
 				BB031B702C47BB080099F7AD /* KMUserFbTypeItemView.swift in Sources */,
-				ADDEEA6F2AD3E16100EF675D /* KMSigntureViewItem.swift in Sources */,
 				9FF371DA2C69B933005F9CC5 /* CDistanceSettingWindowController.swift in Sources */,
 				BB14703F299DC0D200784A6A /* OIDEndSessionResponse.m in Sources */,
 				BB2F9AB42AFCC2F800F9DD93 /* KMProfileInfoWindowController.swift in Sources */,
@@ -19420,7 +19319,6 @@
 				9F8539C729430AC400DF644E /* KMToolbarRightView.swift in Sources */,
 				AD0E8ABA2A31BDDD00DBFD3C /* KMProduct.swift in Sources */,
 				AD58F4172B1DAC0900299EE0 /* KMPrintSettingView.swift in Sources */,
-				BBF19E902B0B304C007154C8 /* KMStampCreaterWindowController.swift in Sources */,
 				BBE068932CDDF126000512BC /* KMBatesPropertyController.swift in Sources */,
 				BB35C4A02975362900D46EE2 /* KMRedactTopToolBar.swift in Sources */,
 				BBBE20942B21B18900509C4E /* KMPDFInsertWindowController.swift in Sources */,
@@ -19651,7 +19549,6 @@
 				BB1B0AF72B4FC6E900889528 /* KMConvertGuideView.swift in Sources */,
 				BB86C1EF28F544F4005AD968 /* CPDFListView+Event.m in Sources */,
 				657851702CFEE38E0023D640 /* KMSearchReplaceWindowController.swift in Sources */,
-				BB6710662BC672260018CE54 /* KMSignatureWindowController.m in Sources */,
 				BBE788BC2CBD2463008086E2 /* AlertControllerVC.swift in Sources */,
 				ADBC2D39299F0A5A006280C8 /* KMPrintHelpViewController.swift in Sources */,
 				9F9461862BD644BF0076574B /* KMTableDataManager.m in Sources */,
@@ -19688,7 +19585,6 @@
 				9F1F82E52934D5240092C4B4 /* KMHomeExtractActionViewController.swift in Sources */,
 				BB031B862C47BB090099F7AD /* KMUserListItemView.swift in Sources */,
 				BBE788C22CBD2463008086E2 /* ControllerVC.swift in Sources */,
-				9FB220E12B10850400A5B208 /* KMAnnotationStampViewController.swift in Sources */,
 				F3D395692CBD2C6D000C6729 /* KMNCustomAlertView.swift in Sources */,
 				ADBC375F29CC61E100D93208 /* KMReadModelView.swift in Sources */,
 				653647E12CDCA77300CDB13E /* KMBatchTableCellView.swift in Sources */,
@@ -20093,7 +19989,6 @@
 				BBEDC2292B98205200970C54 /* Bundle+KMExtension.swift in Sources */,
 				AD02573C2A8601AA00EAD5D5 /* KMLoginManager.swift in Sources */,
 				653647DB2CDCA77300CDB13E /* KMLongerButton.swift in Sources */,
-				ADDEEA702AD3E16100EF675D /* KMSigntureViewItem.swift in Sources */,
 				9FF0D0552B6A3EE40018A732 /* CPDFListView+Form.swift in Sources */,
 				BB792A062CF0280E006FFD5D /* KMFileThumbManager.swift in Sources */,
 				BB853C7F2AF8B5D6009C20C1 /* KMBatchOperateAddPasswordViewController.swift in Sources */,
@@ -20460,7 +20355,6 @@
 				BBED0C2E2BBD569300511FAE /* KMAnnotationModel.swift in Sources */,
 				BB8810872B4F7C2200AFA63E /* KMVerificationAlertViewController.m in Sources */,
 				657866012CE1E7DD00AFE2DB /* KMBookMarkTableRowView.swift in Sources */,
-				BBF19E912B0B304C007154C8 /* KMStampCreaterWindowController.swift in Sources */,
 				65B143A02CF06B97001B5A69 /* NSImage+Extension.swift in Sources */,
 				BB716D5A2CDDB6F9009787ED /* KMHeaderTemplateItem.swift in Sources */,
 				653647CD2CDCA5DE00CDB13E /* KMBatchOperateBaseWindowController.swift in Sources */,
@@ -20610,7 +20504,6 @@
 				BB146FCB299DC0D100784A6A /* GTMSessionFetcher.m in Sources */,
 				9F0CB4CF298654FA00007028 /* KMDesignToken+Height.swift in Sources */,
 				ADA08A8C29F21A53009B2A7B /* KMPDFViewAnnotationOnceModeStore.swift in Sources */,
-				AD5999442AD8DC2000412F8B /* KMDynamicStampViewController.swift in Sources */,
 				65F9F4812CFB5C3500F187A8 /* KMNBotaBaseViewController.swift in Sources */,
 				ADFCEB572B4FBADB0001EBAF /* KMFirebaseRemoteConfig.swift in Sources */,
 				BBC28F482B0F352000D73206 /* KMImageToolTipContext.swift in Sources */,
@@ -20620,7 +20513,6 @@
 				9F1FE4F229406E4700E952CA /* BackgroundGradientView.m in Sources */,
 				ADAFDA272AE8DE1B00F084BC /* KMAdvertisementModel.swift in Sources */,
 				BBA8B6712B9027D700CB07B0 /* SKFileUpdateChecker.m in Sources */,
-				89316824296D73CC0073EA59 /* KMSignatureAnnotationViewController.m in Sources */,
 				9F1FE4A429406E4700E952CA /* CTToolbarController.m in Sources */,
 				BB1B0AFD2B4FC6E900889528 /* KMCustomColorGuideView.swift in Sources */,
 				BBEB93ED2AD6C2AE00739573 /* KMPDFMergeFileNameTabelViewCell.swift in Sources */,

+ 4 - 52
PDF Office/PDF Reader Pro.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -14,10 +14,10 @@
             filePath = "PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+Action.swift"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "2401"
-            endingLineNumber = "2401"
-            landmarkName = "unknown"
-            landmarkType = "0">
+            startingLineNumber = "2383"
+            endingLineNumber = "2383"
+            landmarkName = "toolbarViewController(_:zoomModel:)"
+            landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
       <BreakpointProxy
@@ -3478,54 +3478,6 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "E066DCDA-8E61-4191-8F69-44CC34B2AA5B"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/Stamp/CPDFListStampAnnotation.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "21"
-            endingLineNumber = "21"
-            landmarkName = "keysForValuesToObserveForUndo()"
-            landmarkType = "7">
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "A500F334-5154-4499-AB19-97296F06B238"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/Stamp/CPDFListStampAnnotation.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "27"
-            endingLineNumber = "27"
-            landmarkName = "rotation"
-            landmarkType = "24">
-         </BreakpointContent>
-      </BreakpointProxy>
-      <BreakpointProxy
-         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
-         <BreakpointContent
-            uuid = "DCB8DE49-954A-4918-B010-6649107737A8"
-            shouldBeEnabled = "Yes"
-            ignoreCount = "0"
-            continueAfterRunningActions = "No"
-            filePath = "PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/Stamp/CPDFListStampAnnotation.swift"
-            startingColumnNumber = "9223372036854775807"
-            endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "63"
-            endingLineNumber = "63"
-            landmarkName = "setBorderBounds(stamp:)"
-            landmarkType = "7">
-         </BreakpointContent>
-      </BreakpointProxy>
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent