Преглед на файлове

【转档】补充转档OCR+json界面

dinglingui преди 5 месеца
родител
ревизия
462e54a6cb

+ 1 - 0
PDF Office/PDF Master/Class/Batch/Tools/KMBatchHeader.swift

@@ -42,6 +42,7 @@ import Foundation
     case TGA
     case BMP
     case JP2
+    case Json
     case AdvancedWord
 }
 

+ 417 - 70
PDF Office/PDF Master/Class/PDFTools/Convert/NewController/KMConvertWindowController.swift

@@ -14,7 +14,7 @@ let kPreviewMaxHeight = 325.0
 
 let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("convert.pdf"))
 
-@objcMembers class KMConvertWindowController: NSWindowController, NSTextFieldDelegate, NSWindowDelegate{
+@objcMembers class KMConvertWindowController: NSWindowController, NSTextFieldDelegate, NSWindowDelegate, NSComboBoxDelegate{
     @IBOutlet var prePDFViewHeight: NSLayoutConstraint!
     @IBOutlet var prePDFViewWidth: NSLayoutConstraint!
    
@@ -34,12 +34,7 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
     @IBOutlet var moreConvertLabel: NSTextField!
     
     @IBOutlet var pageRangLabel: NSTextField!
-    @IBOutlet var allPageButton: NSButton!
-    @IBOutlet var currentPageButton: NSButton!
-    @IBOutlet var oddPageButton: NSButton!
-    @IBOutlet var evenPageButton: NSButton!
-    @IBOutlet var handInputButton: NSButton!
-    @IBOutlet var pageRangeTextField: NSTextField!
+    @IBOutlet var pageRangeBox: NSComboBox!
     
     @IBOutlet var convertButton: NSButton!
     @IBOutlet var cancelButton: NSButton!
@@ -66,8 +61,13 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
     @IBOutlet var allContentMenu3: NSMenuItem!
     @IBOutlet var tableMenu: NSPopUpButton!
     @IBOutlet var allContentMenu: NSPopUpButton!
-    @IBOutlet var box: NSBox!
+    @IBOutlet var ocrBox: NSBox!
     
+    @IBOutlet var ocrLabel: NSTextField!
+    @IBOutlet var ocrButton: NSButton!
+    @IBOutlet var ocrLanguageBox: NSPopUpButton!
+    @IBOutlet var ocrTopOffset: NSLayoutConstraint!
+
     var isAllInOneSheet = false
     var modalSession: NSApplication.ModalSession?
     
@@ -140,10 +140,25 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         let preView: CPDFView = CPDFView(frame: self.prePdfBGView.bounds)
         self.prePdfBGView.addSubview(preView)
         self.prePDFView = preView
-        self.box.fillColor = .gridColor
+        self.ocrBox.fillColor = .gridColor
         localizedLanguage()
         self.currentPageIndexTextField.delegate = self;
-        self.pageRangeTextField.delegate = self;
+        
+        pageRangLabel.stringValue = KMLocalizedString("Page Range:", nil)
+        pageRangeBox.addItem(withObjectValue: KMLocalizedString("All Pages", nil))
+        pageRangeBox.addItem(withObjectValue: KMLocalizedString("Current Page", nil))
+        pageRangeBox.addItem(withObjectValue: KMLocalizedString("Odd Pages Only", nil))
+        pageRangeBox.addItem(withObjectValue: KMLocalizedString("Even Pages Only", nil))
+        pageRangeBox.addItem(withObjectValue: KMLocalizedString("e.g. 1,3-5,10", nil))
+        (pageRangeBox.cell as? NSComboBoxCell)?.placeholderString = KMLocalizedString("e.g. 1,3-5,10", nil)
+        pageRangeBox.selectItem(at: 0)
+        pageRangeBox.isEditable = false
+
+        ocrLanguageBox.selectItem(at: 0)
+        ocrLabel.textColor = KMAppearance.Layout.h2Color()
+        ocrLanguageBox.isEnabled = false
+        ocrButton.state = .off
+
         let isLoc: Bool = self.pdfDocument!.isLocked
         if (isLoc) {
             self.showWaitting()
@@ -175,7 +190,6 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         isAllInOneSheet = false
         separateButton.state = .on
         singleButton.state = .off
-        allPageButton.state = .on
         allContentBtn.state = .on
         allContentMenu.isEnabled = true
         tableMenu.isEnabled = false
@@ -199,15 +213,12 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         formatLabel.stringValue = KMLocalizedString("Format:", nil)
         separateButton.title = KMLocalizedString("Convert each page to a separate worksheet", nil)
         singleButton.title = KMLocalizedString("Convert all pages to a single worksheet", nil)
-        box.title = KMLocalizedString("Page Range:", nil)
+        ocrBox.title = KMLocalizedString("Text Recognition Settings", nil)
+        ocrLabel.stringValue = KMLocalizedString("Document Language:", nil)
+        ocrButton.title = KMLocalizedString("Recognize text if needed", nil)
+
         separateStypeLabel.stringValue = KMLocalizedString("Excel Worksheet Settings", nil)
         extractTableButton.title = KMLocalizedString("Extract Tables Only", nil)
-        allPageButton.title = KMLocalizedString("All Pages", nil)
-        currentPageButton.title = KMLocalizedString("Current Page", nil)
-        oddPageButton.title = KMLocalizedString("Odd Pages Only", nil)
-        evenPageButton.title = KMLocalizedString("Even Pages Only", nil)
-        
-        pageRangeTextField.placeholderString = KMLocalizedString("e.g. 1,3-5,10", nil)
         
         batchButton.title = KMLocalizedString("Batch", nil)
         cancelButton.title = KMLocalizedString("Cancel", nil)
@@ -241,7 +252,7 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         self.formatSelectButton.removeAllItems()
         
         let dpiArray = ["50 dpi", "72 dpi", "96 dpi", "150 dpi", "300 dpi", "600 dpi"]
-        let formArray = ["Excel (.xlsx)", "PowerPoint (.pptx)", "RTF (.rtf)", "CSV (.csv)", "Html (.html)", "Text (.txt)", "JPEG (.jpeg)", "JPG (.jpg)", "PNG (.png)", "GIF (.gif)", "TIFF (.tiff)", "TGA (.tga)", "BMP (.bmp)", "JPEG-2000 (.jp2)"]
+        let formArray = ["Excel (.xlsx)", "PowerPoint (.pptx)", "RTF (.rtf)", "CSV (.csv)", "Html (.html)", "Text (.txt)", "JPEG (.jpeg)", "JPG (.jpg)", "PNG (.png)", "GIF (.gif)", "TIFF (.tiff)", "TGA (.tga)", "BMP (.bmp)", "JPEG-2000 (.jp2)","Json(.json)"]
         
         for (index, string) in formArray.enumerated() {
             let item = NSMenuItem()
@@ -416,7 +427,8 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
                     .TIFF == self.convertType ||
                     .JP2 == self.convertType ||
                     .BMP == self.convertType ||
-                    .TGA == self.convertType {
+                    .TGA == self.convertType ||
+                    .Json == self.convertType {
                     moreLabelString = String(format: "%@ %@", KMLocalizedString("The first 10 pages for free"), KMLocalizedString("Unlimited Convert"))
                 }
             }
@@ -471,12 +483,14 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         }
         
         if .Excel == convertType {
-            separateStypeTopOffset.constant = separateStypeBox.frame.size.height + 58 + 16
+            separateStypeTopOffset.constant = separateStypeBox.frame.size.height + ocrBox.frame.size.height + 16 + 58
             extractTableTopOffset.constant = separateStypeBox.frame.size.height + 50
+            ocrTopOffset.constant = 128
             separateStypeBox.isHidden = true
             extractTableButton.isHidden = true
             excelStyleBox.isHidden = false
             separateStypeLabel.isHidden = false
+            ocrBox.isHidden = false
             separateStypeLabel.stringValue = NSLocalizedString("Excel Worksheet Settings", comment: "")
             separateButton.title = NSLocalizedString("Convert each page to a separate worksheet", comment: "")
             singleButton.title = NSLocalizedString("Convert all pages to a single worksheet", comment: "")
@@ -489,24 +503,62 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
             singleButton.isEnabled = true
             separateButton.isEnabled = true
             isAllInOneSheet = false
-            separateStypeTopOffset.constant = separateStypeBox.frame.size.height + 40
+            separateStypeTopOffset.constant = separateStypeBox.frame.size.height + 40  + ocrBox.frame.size.height
+            ocrTopOffset.constant = separateStypeBox.frame.size.height + 40
             extractTableButton.isHidden = true
             separateStypeBox.isHidden = false
             separateStypeLabel.isHidden = false
             separateStypeLabel.stringValue = NSLocalizedString("Layout Settings", comment: "")
             separateButton.title = NSLocalizedString("Retain Flowing Text", comment: "")
             singleButton.title = NSLocalizedString("Retain Page Layout", comment: "")
+            ocrBox.isHidden = false
+        } else if .Json == convertType {
+            singleButton.setTitleColor(NSColor.labelColor)
+            separateButton.setTitleColor(NSColor.labelColor)
+            separateStypeLabel.textColor = NSColor.labelColor
+            separateButton.state = NSControl.StateValue.on
+            singleButton.isEnabled = true
+            separateButton.isEnabled = true
+            isAllInOneSheet = false
+            separateStypeTopOffset.constant = separateStypeBox.frame.size.height + 40  + ocrBox.frame.size.height
+            ocrTopOffset.constant = separateStypeBox.frame.size.height + 40
+            extractTableButton.isHidden = true
+            separateStypeBox.isHidden = false
+            separateStypeLabel.isHidden = false
+            separateStypeLabel.stringValue = NSLocalizedString("Json worksheet Settings", comment: "")
+            separateButton.title = NSLocalizedString("Extract text content", comment: "")
+            singleButton.title = NSLocalizedString("Extract Table", comment: "")
+            ocrBox.isHidden = false
         } else if .CSV == convertType {
             separateStypeTopOffset.constant = extractTableButton.frame.size.height + 30
             extractTableTopOffset.constant = 12
             extractTableButton.isHidden = false
             separateStypeBox.isHidden = true
             separateStypeLabel.isHidden = true
+            ocrBox.isHidden = true
+            
+        } else if (.PPT == convertType || .RTF == convertType)  {
+            separateStypeTopOffset.constant = ocrBox.frame.size.height + 10
+            ocrTopOffset.constant = 0
+            separateStypeBox.isHidden = true
+            extractTableButton.isHidden = true
+            separateStypeLabel.isHidden = true
+            ocrBox.isHidden = false
+        } else if (.HTML == convertType ||
+            .Text == convertType ||
+            .Json == convertType)  {
+            separateStypeTopOffset.constant = ocrBox.frame.size.height + 10
+            ocrTopOffset.constant = 10
+            separateStypeBox.isHidden = true
+            extractTableButton.isHidden = true
+            separateStypeLabel.isHidden = true
+            ocrBox.isHidden = false
         } else {
-            separateStypeTopOffset.constant = 15
+            separateStypeTopOffset.constant = 10
             separateStypeBox.isHidden = true
             extractTableButton.isHidden = true
             separateStypeLabel.isHidden = true
+            ocrBox.isHidden = true
         }
         
         buttonBottemOffset.constant = offset
@@ -584,25 +636,7 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
         self.currentPageIndexTextField.stringValue = "1"
         self.totalPageCountLabel.stringValue = " / \(self.tempPDFDocument!.pageCount)"
     }
-    func pageRangeSetON(_ sender: NSButton) {
-        allPageButton.state = .off
-        oddPageButton.state = .off
-        evenPageButton.state = .off
-        handInputButton.state = .off
-        currentPageButton.state = .off
-        sender.state = .on
-        if sender == handInputButton {
-            pageRangeTextField.isEditable = true
-            pageRangeTextField.isSelectable = true
-            //        self.pageRangeTextField.textColor = NSColor.textColor
-            window?.makeFirstResponder(pageRangeTextField)
-        } else {
-            pageRangeTextField.isEditable = false
-            pageRangeTextField.isSelectable = false
-            //        self.pageRangeTextField.textColor = NSColor.lightGrayColor
-            window?.makeFirstResponder(self)
-        }
-    }
+   
     @IBAction func buttonClicked_FormatSelect(_ sender: NSButton) {
         guard let item = self.formatSelectButton.selectedItem else { return }
         self.convertType =  KMConvertType(rawValue: item.tag) ?? .Word
@@ -641,30 +675,7 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
     @IBAction func buttonClicked_allContentMenu(_ sender: NSButton) {
         transform(with: self.allContentMenu.selectedItem?.title ?? "")
     }
-    @IBAction func buttonClicked_PageSelect(_ sender: NSButton) {
-        pageRangeSetON(sender)
-        self.lockPassword = ""
-        let pagesArray = NSMutableArray()
-        for i in 0..<(self.pdfDocument?.pageCount ?? 0) {
-            let copyPage = self.pdfDocument?.page(at: i)
-            pagesArray.add(copyPage!)
-        }
-        if sender.isEqual(self.oddPageButton) {
-            pagesArray.subArray(type: .Odd)
-        } else if (sender.isEqual(self.evenPageButton)) {
-            pagesArray.subArray(type: .Even)
-        } else if (sender.isEqual(self.currentPageButton)) {
-            pagesArray.removeAllObjects()
-            let page = self.prePDFView.currentPage()
-            if (page != nil) {
-                pagesArray.add(page as Any)
-            }
-        }
-        produceNewPDF(with: pagesArray as! [CPDFPage])
-//        perform(#selector(produceNewPDF(with:)), with: pagesArray, afterDelay: 2)
-//        performSelector(produceNewPDF(with:), withObject: pagesArray, afterDelay: 2)
-        
-    }
+   
     @IBAction func buttonClicked_DpiSelect(_ sender: NSPopUpButton) {
         let index = sender.indexOfSelectedItem
         var dpi = 0
@@ -715,7 +726,7 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
     }
     @IBAction func buttonClicked_Convert(_ sender: Any) {
         self.window?.makeFirstResponder(self.prePDFView)
-        if self.handInputButton.state == .on {
+        if (4 == pageRangeBox.indexOfSelectedItem) {
             if self.fileAttri_ == nil {
                 self.fileAttri_ = KMFileAttribute()
                 self.fileAttri_?.filePath = self.pdfDocument?.documentURL.path ?? ""
@@ -723,7 +734,7 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
 //            fileAttri_.pdfDocument = self.pdfDocument
             self.fileAttri_?.bAllPage = false
             self.fileAttri_?.pagesType = .custom
-            self.fileAttri_?.pagesString = self.pageRangeTextField.stringValue
+            self.fileAttri_?.pagesString = pageRangeBox.stringValue
             let pages = self.fileAttri_?.fetchSelectPages() ?? []
             if pages.isEmpty {
                 return
@@ -1002,7 +1013,10 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
             self.isAllInOneSheet = false
         }
     }
+    
     func controlTextDidEndEditing(_ obj: Notification) {
+        KMPrint("页码范围 ...")
+        /*
         let object = obj.object
         if (object as AnyObject).isEqual(self.currentPageIndexTextField) == true {
             let num: Int = Int(self.currentPageIndexTextField.stringValue) ?? 1
@@ -1030,10 +1044,15 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
                 self.showCriticalAlert(nil)
             }
         }
+         */
     }
+    
     func controlTextDidChange(_ obj: Notification) {
-        if let textField = obj.object as? NSTextField {
-            if textField.isEqual(self.currentPageIndexTextField) {
+        KMPrint("页码范围 ...")
+        /*
+
+        if let textField = obj.object as? NSComboBox {
+            if textField.isEqual(pageRangeBox) {
                 if let stringValue = self.currentPageIndexTextField.formatter?.string(for: NSNumber(value: Float(self.currentPageIndexTextField.stringValue) ?? 0)) {
                     if let integerValue = Int(stringValue) {
                         var string = stringValue
@@ -1047,9 +1066,337 @@ let kConvertFileSavePath = (kTempSavePath?.stringByAppendingPathComponent("conve
                 }
             }
         }
+         */
+
+    }
+    
+    @IBAction func comboxClicked_PageRange(_ sender: AnyObject?) {
+        KMPrint("页码范围 ...")
+
+        /*
+        if (0 == pageRangeBox.indexOfSelectedItem ||
+            1 == pageRangeBox.indexOfSelectedItem ||
+            2 == pageRangeBox.indexOfSelectedItem ||
+            3 == pageRangeBox.indexOfSelectedItem) {
+            self.window?.makeFirstResponder(self)
+            pageRangeBox.isEditable = false
+            pageRangeBox.delegate = nil
+        } else {
+            pageRangeBox.stringValue = pageRangeBox.stringValue
+            pageRangeBox.isEditable = true
+            pageRangeBox.delegate = self
+            self.window?.makeFirstResponder(pageRangeBox)
+        }
+        
+        self.lockPassword = ""
+        let pagesArray = NSMutableArray()
+        for i in 0..<(self.pdfDocument?.pageCount ?? 0) {
+            let copyPage = self.pdfDocument?.page(at: i)
+            pagesArray.add(copyPage!)
+        }
+        if (2 == pageRangeBox.indexOfSelectedItem) {
+            pagesArray.subArray(type: .Odd)
+        } else if (3 == pageRangeBox.indexOfSelectedItem) {
+            pagesArray.subArray(type: .Even)
+        } else if (1 == pageRangeBox.indexOfSelectedItem) {
+            pagesArray.removeAllObjects()
+            let page = self.prePDFView.currentPage()
+            if (page != nil) {
+                pagesArray.add(page as Any)
+            }
+        }
+        produceNewPDF(with: pagesArray as! [CPDFPage])
+         */
     }
     
+    @IBAction func comboxClicked_OcrLanguage(_ sender: AnyObject?) {
+        KMPrint("语言 ...")
+       
+        switch (ocrLanguageBox.indexOfSelectedItem) {
+            case 0:
+                //chinese
+                    // COCRLanguageChinese;
+
+                break;
+            case 1:
+                //chinese zht
+                    // COCRLanguageChineseTraditional;
+                
+                break;
+                
+            case 2:
+                //English
+                    // COCRLanguageEnglish;
+
+                break;
+                
+            case 3:
+                //Japanese
+                    // COCRLanguageJapanese;
+                
+                break;
+            
+            case 4:
+                //Kroean
+                    // COCRLanguageKorean;
+                break;
+                
+            case 5:
+                //Serbian
+                
+                    // COCRLanguageSerbian;
+                break;
+                
+            case 6:
+                //Occitan
+                    // COCRLanguageOccitan;
+                break;
+                
+            case 7:
+                //Danish
+                    // COCRLanguageDanish;
+                break;
+                
+            case 8:
+                //German
+                    // COCRLanguageGerman;
+                break;
+                
+            case 9:
+                //French
+                    // COCRLanguageFrench;
+                break;
+                
+            case 10:
+                //Italian
+                    // COCRLanguageItalian;
+                break;
+                
+            case 11:
+                //Spanish
+                    // COCRLanguageSpanish;
+                break;
+                
+            case 12:
+                //Portuguese
+                    // COCRLanguagePortuguese;
+                break;
+                
+            case 13:
+                //Maori
+                
+                    // COCRLanguageMaori;
+                break;
+                
+            case 14:
+                //Malay
+                    // COCRLanguageMalay;
+                break;
+                
+            case 15:
+                //Malay
+                    // COCRLanguageMaltese;
+                break;
+                
+            case 16:
+                //Dutch
+                    // COCRLanguageDutch;
+                break;
+                
+            case 17:
+                //Norwegian
+                    // COCRLanguageNorwegian;
+                break;
+                
+            case 18:
+                //Polish
+                    // COCRLanguagePolish;
+                break;
+                
+            case 19:
+                //Romanian
+                    // COCRLanguageRomanian;
+                break;
+                
+            case 20:
+                //Slovak
+                    // COCRLanguageSlovak;
+                break;
+                
+            case 21:
+                //Slovenian
+                    // COCRLanguageSlovenian;
+                break;
+                
+            case 22:
+                //Albanian
+                
+                    // COCRLanguageAlbanian;
+                break;
+                
+            case 23:
+                //Swedish
+                    // COCRLanguageSwedish;
+                break;
+                
+            case 24:
+                //Swahili
+                    // COCRLanguageSwahili;
+                break;
+                
+            case 25:
+                //Tagalog
+                    // COCRLanguageTagalog;
+                break;
+                
+            case 26:
+                //Turish
+                    // COCRLanguageTurish;
+                break;
+            case 27:
+                //Uzbek
+                    // COCRLanguageUzbek;
+                break;
+            case 28:
+                //Vietnamese
+                    // COCRLanguageVietnamese;
+                break;
+            case 29:
+                //Afrikaans
+                    // COCRLanguageAfrikaans;
+                break;
+            case 30:
+                //Azerbaijani
+                    // COCRLanguageAzerbaijani;
+                break;
+            case 31:
+                //Bosnian
+                    // COCRLanguageBosnian;
+                break;
+            case 32:
+                //Czech
+                    // COCRLanguageCzech;
+                break;
+            case 33:
+                //Welsh
+                    // COCRLanguageWelsh;
+                break;
+            case 34:
+                //Estonian
+                    // COCRLanguageEstonian;
+                break;
+            
+             case 35:
+                //Irish
+                    // COCRLanguageIrish;
+                break;
+             case 36:
+                //Croatian
+                    // COCRLanguageCroatian;
+                break;
+            case 37:
+                //Hungarian
+                    // COCRLanguageHungarian;
+                break;
+            case 38:
+                //Indonesian
+                    // COCRLanguageIndonesian;
+                break;
+            case 39:
+                //Icelandic
+                    // COCRLanguageIcelandic;
+                break;
+            case 40:
+                //Kurdish
+                    // COCRLanguageKurdish;
+                break;
+            case 41:
+                //Lithuanian
+                    // COCRLanguageLithuanian;
+                break;
+            case 42:
+                //Latvian
+                    // COCRLanguageLatvian;
+                break;
+                
+            case 43:
+                //Marathi
+                    // COCRLanguageMarathi;
+                break;
+                
+            case 44:
+                //Nepali
+                    // COCRLanguageNepali;
+                break;
+                
+            case 45:
+                //Latvia
+                    // COCRLanguageHindi;
+                break;
+                
+            case 46:
+                //Bihari
+                    // COCRLanguageBihari;
+                break;
+                
+            case 47:
+                //Maithili
+                    // COCRLanguageMaithili;
+                break;
+                
+            case 48:
+                //Angika
+                    // COCRLanguageAngika;
+                break;
+                
+            case 49:
+                //Bhojpuri
+                    // COCRLanguageBhojpuri;
+                break;
+                
+            case 50:
+                //Magahi
+                    // COCRLanguageMagahi;
+                break;
+                
+            case 51:
+                //Nagpur
+                    // COCRLanguageNagpur;
+                break;
+                
+            case 52:
+                //Newari
+                    // COCRLanguageNewari;
+                break;
+                
+            case 53:
+                //GoanKonkani
+                    // COCRLanguageGoanKonkani;
+                break;
+                
+            case 54:
+                //SaudiArabia
+                    // COCRLanguageSaudiArabia;
+                break;
+                
+                
+            default:
+                //Other Language such as Lagtin or Hindu
+                break;
+        }
+    }
     
+    @IBAction func comboxClicked_SupoortOCR(_ sender: AnyObject?) {
+        KMPrint("是否支持OCR ...")
+        if(ocrButton.state == .on) {
+            ocrLabel.textColor = KMAppearance.titleColor()
+            ocrLanguageBox.isEnabled = true
+        } else {
+            ocrLabel.textColor = KMAppearance.Layout.h2Color()
+            ocrLanguageBox.isEnabled = false
+        }
+    }
+
 }
 
 

+ 278 - 144
PDF Office/PDF Master/Class/PDFTools/Convert/NewController/KMConvertWindowController.xib

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -12,35 +12,35 @@
                 <outlet property="allContentMenu" destination="CPK-uS-4AE" id="Iwv-Vn-2ol"/>
                 <outlet property="allContentMenu2" destination="vBM-XN-pKT" id="93t-Zm-dpB"/>
                 <outlet property="allContentMenu3" destination="yYm-Qc-Owk" id="DcX-Tq-7QJ"/>
-                <outlet property="allPageButton" destination="i6b-xc-EnV" id="kcK-qQ-pQl"/>
                 <outlet property="batchButton" destination="Qt9-t5-iOv" id="4Uk-ND-9cb"/>
-                <outlet property="box" destination="jUW-ZO-oLT" id="G2S-bv-4H8"/>
                 <outlet property="buttonBottemOffset" destination="038-Ye-5oH" id="rJL-zQ-c99"/>
                 <outlet property="buttonTopOffset" destination="S2V-FH-ddg" id="2WI-tu-xGe"/>
                 <outlet property="cancelButton" destination="GDI-DM-qg0" id="PKa-Wx-EXJ"/>
                 <outlet property="convertButton" destination="EbI-Wk-CCv" id="CTN-mu-1jZ"/>
-                <outlet property="currentPageButton" destination="dAn-qd-Go2" id="PN5-bY-rxX"/>
                 <outlet property="currentPageIndexTextField" destination="SOc-Qh-Bb7" id="MLg-Jw-Rgq"/>
-                <outlet property="evenPageButton" destination="dLF-54-2Ez" id="DtU-OJ-bDT"/>
                 <outlet property="excelStyleBox" destination="R2E-0y-EaA" id="9CK-ai-Jk5"/>
                 <outlet property="extractTableButton" destination="UPM-vO-BAb" id="jyM-ue-6b2"/>
                 <outlet property="extractTableTopOffset" destination="W62-df-hdy" id="IUS-0g-SiU"/>
                 <outlet property="formatLabel" destination="A06-uc-UOW" id="2o3-1j-7xp"/>
                 <outlet property="formatSelectButton" destination="t4K-iL-FMn" id="sqV-Gf-7WS"/>
-                <outlet property="handInputButton" destination="DKh-aX-YO7" id="kNK-dS-EFD"/>
                 <outlet property="imageDPISelectButton" destination="uzi-Qq-1mA" id="g3r-EQ-CSM"/>
                 <outlet property="moreButton" destination="0Oz-gz-y6o" id="NrX-ro-7ZX"/>
                 <outlet property="moreConvertBox" destination="eZJ-LL-IOr" id="zid-W0-SMK"/>
                 <outlet property="moreConvertLabel" destination="ckr-Wn-5Tf" id="lQh-DM-Hfm"/>
-                <outlet property="oddPageButton" destination="76W-z8-ktB" id="sg2-uk-qEn"/>
+                <outlet property="ocrBox" destination="Bpl-Ox-GVU" id="cBY-I4-NdJ"/>
+                <outlet property="ocrButton" destination="7HT-Vw-exZ" id="Ryh-BG-xHr"/>
+                <outlet property="ocrLabel" destination="q5x-u2-fel" id="E8A-tT-sPE"/>
+                <outlet property="ocrLanguageBox" destination="lx7-mQ-roc" id="0aH-aW-8kj"/>
+                <outlet property="ocrTopOffset" destination="mnw-u6-WjY" id="Uzg-e3-3f1"/>
                 <outlet property="onlyTableBtn" destination="Es6-xx-eHm" id="LeY-q3-A0g"/>
                 <outlet property="onlyTextBtn" destination="MIf-YP-j4V" id="Gu5-sp-LEn"/>
-                <outlet property="pageRangeTextField" destination="y8I-4d-Yvk" id="J4p-dR-nAS"/>
+                <outlet property="pageRangLabel" destination="WyY-GN-uWB" id="1Rk-M6-vCy"/>
+                <outlet property="pageRangeBox" destination="C7X-dj-upX" id="Yop-Gf-Ocb"/>
                 <outlet property="prePdfBGView" destination="CBx-MQ-cXc" id="cER-wE-Gb6"/>
                 <outlet property="separateButton" destination="47o-yu-wxa" id="KZq-gq-SEW"/>
                 <outlet property="separateStypeBox" destination="aGQ-OF-WXB" id="V3q-Qq-Ldb"/>
                 <outlet property="separateStypeLabel" destination="hQ6-L6-IW2" id="nvh-Ku-2js"/>
-                <outlet property="separateStypeTopOffset" destination="BVR-t4-M1Y" id="qeX-yc-ctq"/>
+                <outlet property="separateStypeTopOffset" destination="1YP-Ol-KzS" id="sY4-Om-mer"/>
                 <outlet property="singleButton" destination="DRT-Gg-QW1" id="Yhn-QF-BVQ"/>
                 <outlet property="tableMenu" destination="sq1-RM-hUc" id="Fj8-c0-DlS"/>
                 <outlet property="tableMenu1" destination="kP9-YO-QvE" id="kOb-qo-fF1"/>
@@ -61,14 +61,14 @@
             <value key="minSize" type="size" width="700" height="524"/>
             <value key="maxSize" type="size" width="700" height="524"/>
             <view key="contentView" wantsLayer="YES" id="se5-gp-TjO">
-                <rect key="frame" x="0.0" y="0.0" width="730" height="461"/>
+                <rect key="frame" x="0.0" y="0.0" width="718" height="461"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
                     <customView translatesAutoresizingMaskIntoConstraints="NO" id="9e4-ci-JPQ">
-                        <rect key="frame" x="0.0" y="50" width="365" height="411"/>
+                        <rect key="frame" x="0.0" y="50" width="359" height="411"/>
                         <subviews>
                             <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="X0Q-MI-4li">
-                                <rect key="frame" x="92" y="8" width="26" height="26"/>
+                                <rect key="frame" x="89" y="8" width="26" height="26"/>
                                 <buttonCell key="cell" type="round" bezelStyle="circular" image="NSGoLeftTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="YGV-tr-NS4">
                                     <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                     <font key="font" metaFont="system"/>
@@ -78,7 +78,7 @@
                                 </connections>
                             </button>
                             <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="GvR-dU-AwU">
-                                <rect key="frame" x="248" y="8" width="26" height="26"/>
+                                <rect key="frame" x="245" y="8" width="26" height="26"/>
                                 <buttonCell key="cell" type="round" bezelStyle="circular" image="NSGoRightTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="QOu-1C-uhN">
                                     <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                     <font key="font" metaFont="system"/>
@@ -88,9 +88,9 @@
                                 </connections>
                             </button>
                             <customView translatesAutoresizingMaskIntoConstraints="NO" id="ioL-gH-agJ">
-                                <rect key="frame" x="155" y="10" width="56" height="22"/>
+                                <rect key="frame" x="152" y="10" width="56" height="22"/>
                                 <subviews>
-                                    <textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="SOc-Qh-Bb7">
+                                    <textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="SOc-Qh-Bb7">
                                         <rect key="frame" x="0.0" y="0.0" width="40" height="22"/>
                                         <constraints>
                                             <constraint firstAttribute="height" constant="22" id="3Jq-m9-DeQ"/>
@@ -105,7 +105,7 @@
                                             <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
                                         </textFieldCell>
                                     </textField>
-                                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="z3E-2c-R0k">
+                                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="z3E-2c-R0k">
                                         <rect key="frame" x="38" y="3" width="20" height="16"/>
                                         <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="/ 0" id="DYY-wZ-Qj3">
                                             <font key="font" metaFont="system"/>
@@ -124,7 +124,7 @@
                                 </constraints>
                             </customView>
                             <customView translatesAutoresizingMaskIntoConstraints="NO" id="CBx-MQ-cXc">
-                                <rect key="frame" x="64" y="58" width="237" height="325"/>
+                                <rect key="frame" x="61" y="58" width="237" height="325"/>
                                 <constraints>
                                     <constraint firstAttribute="width" constant="237" id="OK9-1V-VQX"/>
                                     <constraint firstAttribute="height" constant="325" id="kqf-Fz-QAp"/>
@@ -144,12 +144,12 @@
                         </constraints>
                     </customView>
                     <box borderType="none" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="3if-Xs-8Lv">
-                        <rect key="frame" x="370" y="338" width="320" height="106"/>
+                        <rect key="frame" x="361" y="340" width="320" height="106"/>
                         <view key="contentView" id="LK9-KO-5na">
                             <rect key="frame" x="0.0" y="0.0" width="320" height="106"/>
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
-                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="A06-uc-UOW">
+                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="A06-uc-UOW">
                                     <rect key="frame" x="8" y="90" width="47" height="16"/>
                                     <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Format" id="I6C-fa-6mM">
                                         <font key="font" metaFont="system"/>
@@ -159,6 +159,9 @@
                                 </textField>
                                 <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="t4K-iL-FMn">
                                     <rect key="frame" x="7" y="56" width="307" height="25"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="300" id="IW3-cd-aif"/>
+                                    </constraints>
                                     <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="KBs-bN-RpD" id="ebx-HJ-6OI">
                                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                         <font key="font" metaFont="menu"/>
@@ -170,15 +173,15 @@
                                             </items>
                                         </menu>
                                     </popUpButtonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="width" constant="300" id="IW3-cd-aif"/>
-                                    </constraints>
                                     <connections>
                                         <action selector="buttonClicked_FormatSelect:" target="-2" id="lCG-tq-rib"/>
                                     </connections>
                                 </popUpButton>
                                 <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="uzi-Qq-1mA">
                                     <rect key="frame" x="7" y="31" width="307" height="25"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="300" id="oBX-Vi-zz7"/>
+                                    </constraints>
                                     <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="0hG-DD-Tut" id="cKX-RA-nQ3">
                                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                         <font key="font" metaFont="menu"/>
@@ -190,9 +193,6 @@
                                             </items>
                                         </menu>
                                     </popUpButtonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="width" constant="300" id="oBX-Vi-zz7"/>
-                                    </constraints>
                                     <connections>
                                         <action selector="buttonClicked_DpiSelect:" target="-2" id="NLj-oZ-ugE"/>
                                     </connections>
@@ -205,16 +205,16 @@
                                         <subviews>
                                             <button translatesAutoresizingMaskIntoConstraints="NO" id="Krh-ke-zCQ">
                                                 <rect key="frame" x="0.0" y="17" width="20" height="14"/>
-                                                <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="KMImageNameElsei" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="dFD-t2-jnf">
-                                                    <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                                                    <font key="font" metaFont="system"/>
-                                                </buttonCell>
                                                 <constraints>
                                                     <constraint firstAttribute="height" constant="14" id="1xt-pb-BQw"/>
                                                     <constraint firstAttribute="width" constant="20" id="uhJ-3t-Ju2"/>
                                                 </constraints>
+                                                <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="KMImageNameElsei" imagePosition="only" alignment="center" imageScaling="proportionallyUpOrDown" inset="2" id="dFD-t2-jnf">
+                                                    <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                                                    <font key="font" metaFont="system"/>
+                                                </buttonCell>
                                             </button>
-                                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ckr-Wn-5Tf">
+                                            <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ckr-Wn-5Tf">
                                                 <rect key="frame" x="23" y="0.0" width="279" height="34"/>
                                                 <textFieldCell key="cell" title="Export PDF to Word and other Microsoft Office formats" id="sBS-zf-jgA">
                                                     <font key="font" metaFont="system"/>
@@ -239,13 +239,13 @@
                                 </box>
                                 <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="0Oz-gz-y6o">
                                     <rect key="frame" x="10" y="0.0" width="300" height="34"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="300" id="ELD-e9-9yi"/>
+                                    </constraints>
                                     <buttonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" imageScaling="proportionallyDown" inset="2" id="pOx-Rw-MAb">
                                         <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                         <font key="font" usesAppearanceFont="YES"/>
                                     </buttonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="width" constant="300" id="ELD-e9-9yi"/>
-                                    </constraints>
                                     <connections>
                                         <action selector="buttonClicked_MoreConvert:" target="-2" id="PeR-FV-SSc"/>
                                     </connections>
@@ -269,7 +269,7 @@
                         </view>
                     </box>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="EbI-Wk-CCv">
-                        <rect key="frame" x="635" y="7" width="82" height="32"/>
+                        <rect key="frame" x="623" y="7" width="82" height="32"/>
                         <buttonCell key="cell" type="push" title="Convert" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="clK-sD-xOl">
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="system"/>
@@ -282,7 +282,7 @@ DQ
                         </connections>
                     </button>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="GDI-DM-qg0">
-                        <rect key="frame" x="564" y="7" width="76" height="32"/>
+                        <rect key="frame" x="552" y="7" width="76" height="32"/>
                         <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="q06-7Z-li8">
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="system"/>
@@ -304,90 +304,6 @@ Gw
                             <action selector="buttonClicked_Batch:" target="-2" id="gpQ-nf-WHJ"/>
                         </connections>
                     </button>
-                    <box title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="jUW-ZO-oLT">
-                        <rect key="frame" x="367" y="46" width="316" height="167"/>
-                        <view key="contentView" id="2NG-Rm-aku">
-                            <rect key="frame" x="4" y="5" width="308" height="145"/>
-                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                            <subviews>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="i6b-xc-EnV">
-                                    <rect key="frame" x="8" y="118" width="82" height="18"/>
-                                    <buttonCell key="cell" type="radio" title="All Pages" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="vsr-pu-U39">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <connections>
-                                        <action selector="buttonClicked_PageSelect:" target="-2" id="7D5-mI-Ail"/>
-                                    </connections>
-                                </button>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="76W-z8-ktB">
-                                    <rect key="frame" x="8" y="66" width="124" height="18"/>
-                                    <buttonCell key="cell" type="radio" title="Odd pages Only" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="ZBn-Hs-C93">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <connections>
-                                        <action selector="buttonClicked_PageSelect:" target="-2" id="at3-xx-NUb"/>
-                                    </connections>
-                                </button>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dLF-54-2Ez">
-                                    <rect key="frame" x="8" y="40" width="127" height="18"/>
-                                    <buttonCell key="cell" type="radio" title="Even pages Only" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="UDv-B4-JqN">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <connections>
-                                        <action selector="buttonClicked_PageSelect:" target="-2" id="SFr-MD-mib"/>
-                                    </connections>
-                                </button>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="DKh-aX-YO7">
-                                    <rect key="frame" x="8" y="12" width="18" height="18"/>
-                                    <buttonCell key="cell" type="radio" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="xws-fE-xzu">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <connections>
-                                        <action selector="buttonClicked_PageSelect:" target="-2" id="GvJ-gr-WLP"/>
-                                    </connections>
-                                </button>
-                                <textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="y8I-4d-Yvk">
-                                    <rect key="frame" x="24" y="10" width="154" height="21"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="bpr-eQ-jls">
-                                        <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>
-                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dAn-qd-Go2">
-                                    <rect key="frame" x="8" y="92" width="106" height="18"/>
-                                    <buttonCell key="cell" type="radio" title="Current Page" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="5ou-c4-ePO">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" metaFont="system"/>
-                                    </buttonCell>
-                                    <connections>
-                                        <action selector="buttonClicked_PageSelect:" target="-2" id="R2l-cy-kM7"/>
-                                    </connections>
-                                </button>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="i6b-xc-EnV" firstAttribute="top" secondItem="2NG-Rm-aku" secondAttribute="top" constant="10" id="8r9-SP-YZI"/>
-                                <constraint firstItem="y8I-4d-Yvk" firstAttribute="top" secondItem="dLF-54-2Ez" secondAttribute="bottom" constant="10" id="CZr-DO-OSs"/>
-                                <constraint firstItem="y8I-4d-Yvk" firstAttribute="centerY" secondItem="DKh-aX-YO7" secondAttribute="centerY" id="Jxu-DV-bDB"/>
-                                <constraint firstItem="dLF-54-2Ez" firstAttribute="top" secondItem="76W-z8-ktB" secondAttribute="bottom" constant="10" id="K6b-dt-Qx5"/>
-                                <constraint firstItem="76W-z8-ktB" firstAttribute="leading" secondItem="i6b-xc-EnV" secondAttribute="leading" id="KBt-Km-MFL"/>
-                                <constraint firstItem="y8I-4d-Yvk" firstAttribute="leading" secondItem="DKh-aX-YO7" secondAttribute="trailing" id="Ls7-ry-Bpw"/>
-                                <constraint firstAttribute="bottom" secondItem="y8I-4d-Yvk" secondAttribute="bottom" constant="10" id="Mqx-vv-Q1G"/>
-                                <constraint firstItem="y8I-4d-Yvk" firstAttribute="width" secondItem="2NG-Rm-aku" secondAttribute="width" multiplier="0.5" id="WXo-G6-usg"/>
-                                <constraint firstItem="i6b-xc-EnV" firstAttribute="leading" secondItem="2NG-Rm-aku" secondAttribute="leading" constant="10" id="atA-as-1Dh"/>
-                                <constraint firstItem="dLF-54-2Ez" firstAttribute="leading" secondItem="i6b-xc-EnV" secondAttribute="leading" id="dfO-pb-SBp"/>
-                                <constraint firstItem="76W-z8-ktB" firstAttribute="top" secondItem="dAn-qd-Go2" secondAttribute="bottom" constant="10" id="eNh-Me-lm8"/>
-                                <constraint firstItem="dAn-qd-Go2" firstAttribute="top" secondItem="i6b-xc-EnV" secondAttribute="bottom" constant="10" id="gU7-jj-j9V"/>
-                                <constraint firstItem="dAn-qd-Go2" firstAttribute="leading" secondItem="i6b-xc-EnV" secondAttribute="leading" id="tGb-Eu-eaw"/>
-                                <constraint firstItem="DKh-aX-YO7" firstAttribute="leading" secondItem="i6b-xc-EnV" secondAttribute="leading" id="uef-dQ-TUX"/>
-                            </constraints>
-                        </view>
-                        <font key="titleFont" metaFont="system"/>
-                    </box>
                     <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rXb-T4-yMb">
                         <rect key="frame" x="75" y="7" width="87" height="32"/>
                         <buttonCell key="cell" type="push" title="Upgrade" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="PUQ-iR-bff">
@@ -399,13 +315,13 @@ Gw
                         </connections>
                     </button>
                     <box hidden="YES" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="aGQ-OF-WXB">
-                        <rect key="frame" x="367" y="231" width="316" height="84"/>
+                        <rect key="frame" x="361" y="253" width="310" height="68"/>
                         <view key="contentView" id="uh9-fs-9X0">
-                            <rect key="frame" x="4" y="5" width="308" height="76"/>
+                            <rect key="frame" x="3" y="3" width="304" height="62"/>
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="47o-yu-wxa">
-                                    <rect key="frame" x="8" y="49" width="290" height="18"/>
+                                    <rect key="frame" x="8" y="35" width="286" height="18"/>
                                     <buttonCell key="cell" type="radio" title="Convert each page to a separate worksheet" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="hVc-jP-hSM">
                                         <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                                         <font key="font" metaFont="system"/>
@@ -415,7 +331,7 @@ Gw
                                     </connections>
                                 </button>
                                 <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="DRT-Gg-QW1">
-                                    <rect key="frame" x="8" y="9" width="290" height="32"/>
+                                    <rect key="frame" x="8" y="9" width="286" height="18"/>
                                     <buttonCell key="cell" type="radio" title="Convert all pages to a single worksheet(.xlsx)" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="MKV-oI-hZ0">
                                         <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                                         <font key="font" metaFont="system"/>
@@ -438,13 +354,17 @@ Gw
                         <font key="titleFont" metaFont="system"/>
                     </box>
                     <box title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="R2E-0y-EaA">
-                        <rect key="frame" x="367" y="219" width="316" height="96"/>
+                        <rect key="frame" x="361" y="227" width="310" height="94"/>
                         <view key="contentView" id="kdq-H7-lg3">
-                            <rect key="frame" x="4" y="5" width="308" height="88"/>
+                            <rect key="frame" x="3" y="3" width="304" height="88"/>
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="CPK-uS-4AE">
                                     <rect key="frame" x="105" y="56" width="152" height="25"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="145" id="5hD-rD-DZ8"/>
+                                        <constraint firstAttribute="height" constant="20" id="8wZ-JW-rou"/>
+                                    </constraints>
                                     <popUpButtonCell key="cell" type="push" title="For Each Page" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="vBM-XN-pKT" id="HZz-2Y-eKt">
                                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                         <font key="font" metaFont="menu"/>
@@ -455,10 +375,6 @@ Gw
                                             </items>
                                         </menu>
                                     </popUpButtonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="width" constant="145" id="5hD-rD-DZ8"/>
-                                        <constraint firstAttribute="height" constant="20" id="8wZ-JW-rou"/>
-                                    </constraints>
                                     <connections>
                                         <action selector="buttonClicked_allContentMenu:" target="-2" id="wyQ-bt-seM"/>
                                     </connections>
@@ -485,6 +401,10 @@ Gw
                                 </button>
                                 <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="sq1-RM-hUc">
                                     <rect key="frame" x="96" y="30" width="152" height="25"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="145" id="0cK-il-Qad"/>
+                                        <constraint firstAttribute="height" constant="20" id="79Y-YK-1pF"/>
+                                    </constraints>
                                     <popUpButtonCell key="cell" type="push" title="For Each Table" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="kP9-YO-QvE" id="JnU-hE-bwh">
                                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                         <font key="font" metaFont="menu"/>
@@ -496,10 +416,6 @@ Gw
                                             </items>
                                         </menu>
                                     </popUpButtonCell>
-                                    <constraints>
-                                        <constraint firstAttribute="width" constant="145" id="0cK-il-Qad"/>
-                                        <constraint firstAttribute="height" constant="20" id="79Y-YK-1pF"/>
-                                    </constraints>
                                     <connections>
                                         <action selector="buttonClicked_tableMenu:" target="-2" id="n4N-sh-aIg"/>
                                     </connections>
@@ -534,7 +450,7 @@ Gw
                         <font key="titleFont" metaFont="system"/>
                     </box>
                     <button hidden="YES" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="UPM-vO-BAb">
-                        <rect key="frame" x="379" y="219" width="65" height="18"/>
+                        <rect key="frame" x="373" y="225" width="65" height="18"/>
                         <buttonCell key="cell" type="check" title="Check" bezelStyle="regularSquare" imagePosition="left" inset="2" id="2xT-Sc-V3O">
                             <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                             <font key="font" metaFont="system"/>
@@ -543,24 +459,240 @@ Gw
                             <action selector="buttonClicked_extractTable:" target="-2" id="0No-NT-2vF"/>
                         </connections>
                     </button>
-                    <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hQ6-L6-IW2">
-                        <rect key="frame" x="379" y="314" width="37" height="16"/>
+                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hQ6-L6-IW2">
+                        <rect key="frame" x="373" y="320" width="37" height="16"/>
                         <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="8X0-Hn-fJf">
                             <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 boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="RKf-EU-J3Q">
+                        <rect key="frame" x="364" y="78" width="304" height="26"/>
+                        <view key="contentView" id="VEv-bs-dGD">
+                            <rect key="frame" x="0.0" y="0.0" width="304" height="26"/>
+                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                            <subviews>
+                                <comboBox verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="C7X-dj-upX">
+                                    <rect key="frame" x="78" y="0.0" width="229" height="25"/>
+                                    <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" completes="NO" numberOfVisibleItems="5" id="fAw-sA-HYt">
+                                        <font key="font" metaFont="system"/>
+                                        <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </comboBoxCell>
+                                    <connections>
+                                        <action selector="comboxClicked_PageRange:" target="-2" id="OGm-9q-dQX"/>
+                                    </connections>
+                                </comboBox>
+                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="WyY-GN-uWB">
+                                    <rect key="frame" x="3" y="5" width="77" height="16"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Page Range" id="Jzz-uI-b7L">
+                                        <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>
+                            </subviews>
+                            <constraints>
+                                <constraint firstItem="C7X-dj-upX" firstAttribute="leading" secondItem="WyY-GN-uWB" secondAttribute="trailing" id="ONF-2o-AEc"/>
+                                <constraint firstItem="C7X-dj-upX" firstAttribute="centerY" secondItem="VEv-bs-dGD" secondAttribute="centerY" id="cEQ-sa-ww3"/>
+                                <constraint firstItem="WyY-GN-uWB" firstAttribute="leading" secondItem="VEv-bs-dGD" secondAttribute="leading" constant="5" id="gnw-vr-Qud"/>
+                                <constraint firstAttribute="trailing" secondItem="C7X-dj-upX" secondAttribute="trailing" id="hZA-Rw-2fW"/>
+                                <constraint firstItem="WyY-GN-uWB" firstAttribute="top" secondItem="VEv-bs-dGD" secondAttribute="top" constant="5" id="mks-dx-wa5"/>
+                                <constraint firstAttribute="bottom" secondItem="WyY-GN-uWB" secondAttribute="bottom" constant="5" id="uAv-2v-Wir"/>
+                            </constraints>
+                        </view>
+                    </box>
+                    <box title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="Bpl-Ox-GVU">
+                        <rect key="frame" x="361" y="109" width="310" height="107"/>
+                        <view key="contentView" id="hjw-de-suY">
+                            <rect key="frame" x="3" y="3" width="304" height="87"/>
+                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                            <subviews>
+                                <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7HT-Vw-exZ">
+                                    <rect key="frame" x="8" y="60" width="286" height="18"/>
+                                    <buttonCell key="cell" type="check" title="Recognize text if needed" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="jEU-BR-ipB">
+                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
+                                        <font key="font" metaFont="system"/>
+                                    </buttonCell>
+                                    <connections>
+                                        <action selector="comboxClicked_SupoortOCR:" target="-2" id="lpV-4f-DKW"/>
+                                    </connections>
+                                </button>
+                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="q5x-u2-fel">
+                                    <rect key="frame" x="8" y="35" width="288" height="16"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Document Language:" id="FGe-fQ-1t7">
+                                        <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>
+                                <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="lx7-mQ-roc">
+                                    <rect key="frame" x="7" y="6" width="257" height="25"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="250" id="wV8-iV-cmR"/>
+                                    </constraints>
+                                    <popUpButtonCell key="cell" type="push" title="Chinese" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="18N-pp-JIQ" id="6dK-AP-h63">
+                                        <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
+                                        <font key="font" metaFont="menu"/>
+                                        <menu key="menu" id="frL-Md-QYp">
+                                            <items>
+                                                <menuItem title="Chinese" state="on" id="18N-pp-JIQ" userLabel="Chinese"/>
+                                                <menuItem title="Chinese Traditional" id="RKg-h6-ikH" userLabel="Chinese Traditional"/>
+                                                <menuItem title="English" id="uDi-2W-Tq9" userLabel="English"/>
+                                                <menuItem title="Japanese" id="66g-a9-xwp" userLabel="Japanese">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Kroean" id="sb9-3F-JFX" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Serbian" id="zZ4-QP-ngQ" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Occitan" id="7uZ-eW-ZDP" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Danish" id="IVB-ZD-IUC" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="German" id="0zl-Ab-rQU" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="French" id="Ij5-rI-ab5" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Italian" id="Y6U-ee-w5o" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Spanish" id="Iho-kb-ccK" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Portuguese" id="UmU-HB-OQp" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Maori" id="TwT-dN-uWJ" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Malay" id="TBy-li-9hy" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Maltese" id="Q5h-FB-lan" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Dutch" id="AcN-9Y-yxd" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Norwegian" id="5W9-n9-I8V" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Polish" id="Ax9-rj-FjF" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Romanian" id="egn-mB-19Z" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Slovak" id="WVE-KD-U2z" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Slovenian" id="6wI-d0-6b6" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Albanian" id="cxQ-gw-4hb" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Swedish" id="oIg-JM-vA7" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Swahili" id="W8W-hg-w34" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Tagalog" id="MJa-Tu-30N" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Turish" id="ZKI-wa-DyH" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Uzbek" id="ycM-3w-pvY" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Vietnamese" id="lBI-4b-r4X" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Afrikaans" id="Qs7-n2-AMG" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Azerbaijani" id="ybc-fs-Pvf" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Bosnian" id="PQx-x3-EJL" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Czech" state="on" id="El7-cn-Cnv" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Welsh" id="3uE-Qz-laF" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Estonian" id="g0z-wP-OGA" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Irish" id="kgQ-lV-Y43" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Croatian" id="bIy-QQ-6aO" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Hungarian" id="GCV-hQ-XGt" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Indonesian" id="v1O-pS-Cc3" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Icelandic" id="bPR-an-0Tf" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Kurdish" id="uPv-dd-jrF" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Lithuanian" id="wfJ-is-SgB" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                                <menuItem title="Latvian" id="hcX-Xr-1tH" userLabel="Kroean">
+                                                    <modifierMask key="keyEquivalentModifierMask"/>
+                                                </menuItem>
+                                            </items>
+                                        </menu>
+                                    </popUpButtonCell>
+                                    <connections>
+                                        <action selector="comboxClicked_OcrLanguage:" target="-2" id="eCf-WM-PUN"/>
+                                    </connections>
+                                </popUpButton>
+                            </subviews>
+                            <constraints>
+                                <constraint firstItem="q5x-u2-fel" firstAttribute="top" secondItem="7HT-Vw-exZ" secondAttribute="bottom" constant="10" id="FfO-S0-hK1"/>
+                                <constraint firstItem="lx7-mQ-roc" firstAttribute="top" secondItem="q5x-u2-fel" secondAttribute="bottom" constant="5" id="Ltb-Bp-Ihk"/>
+                                <constraint firstItem="7HT-Vw-exZ" firstAttribute="leading" secondItem="hjw-de-suY" secondAttribute="leading" constant="10" id="PWC-6T-Yt7"/>
+                                <constraint firstAttribute="trailing" secondItem="7HT-Vw-exZ" secondAttribute="trailing" constant="10" id="f77-1G-tFD"/>
+                                <constraint firstItem="lx7-mQ-roc" firstAttribute="leading" secondItem="hjw-de-suY" secondAttribute="leading" constant="10" id="gvq-Q2-6OO"/>
+                                <constraint firstItem="7HT-Vw-exZ" firstAttribute="top" secondItem="hjw-de-suY" secondAttribute="top" constant="10" id="oZO-dO-KRV"/>
+                                <constraint firstAttribute="trailing" secondItem="q5x-u2-fel" secondAttribute="trailing" constant="10" id="stY-ME-hTZ"/>
+                                <constraint firstAttribute="bottom" secondItem="lx7-mQ-roc" secondAttribute="bottom" constant="10" id="wQm-Ld-yig"/>
+                                <constraint firstItem="q5x-u2-fel" firstAttribute="leading" secondItem="hjw-de-suY" secondAttribute="leading" constant="10" id="zLZ-lw-z4e"/>
+                            </constraints>
+                        </view>
+                        <font key="titleFont" metaFont="system"/>
+                    </box>
                 </subviews>
                 <constraints>
                     <constraint firstItem="GDI-DM-qg0" firstAttribute="centerY" secondItem="Qt9-t5-iOv" secondAttribute="centerY" id="0hv-WZ-uxR"/>
                     <constraint firstItem="R2E-0y-EaA" firstAttribute="leading" secondItem="aGQ-OF-WXB" secondAttribute="leading" id="0wn-sD-liX"/>
+                    <constraint firstItem="RKf-EU-J3Q" firstAttribute="top" secondItem="3if-Xs-8Lv" secondAttribute="bottom" constant="240" id="1YP-Ol-KzS"/>
                     <constraint firstItem="3if-Xs-8Lv" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" constant="17" id="1mB-0W-zKY"/>
                     <constraint firstItem="9e4-ci-JPQ" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" id="28f-42-Fmz"/>
+                    <constraint firstAttribute="trailing" secondItem="RKf-EU-J3Q" secondAttribute="trailing" constant="50" id="5LO-k9-88a"/>
                     <constraint firstItem="UPM-vO-BAb" firstAttribute="leading" secondItem="9e4-ci-JPQ" secondAttribute="trailing" constant="16" id="BJP-lY-vqA"/>
-                    <constraint firstItem="jUW-ZO-oLT" firstAttribute="top" secondItem="3if-Xs-8Lv" secondAttribute="bottom" constant="125" id="BVR-t4-M1Y"/>
-                    <constraint firstItem="jUW-ZO-oLT" firstAttribute="trailing" secondItem="aGQ-OF-WXB" secondAttribute="trailing" id="DZm-em-mgb"/>
                     <constraint firstItem="R2E-0y-EaA" firstAttribute="top" secondItem="3if-Xs-8Lv" secondAttribute="bottom" constant="25" id="Ge2-Ei-w2S"/>
+                    <constraint firstAttribute="trailing" secondItem="Bpl-Ox-GVU" secondAttribute="trailing" constant="50" id="H46-uf-gXQ"/>
                     <constraint firstItem="hQ6-L6-IW2" firstAttribute="leading" secondItem="9e4-ci-JPQ" secondAttribute="trailing" constant="16" id="HHE-ga-88s"/>
                     <constraint firstItem="9e4-ci-JPQ" firstAttribute="width" secondItem="se5-gp-TjO" secondAttribute="width" multiplier="0.5" id="I64-jc-VDF"/>
                     <constraint firstAttribute="bottom" secondItem="9e4-ci-JPQ" secondAttribute="bottom" constant="50" id="JsO-t0-oub"/>
@@ -569,18 +701,20 @@ Gw
                     <constraint firstItem="EbI-Wk-CCv" firstAttribute="leading" secondItem="GDI-DM-qg0" secondAttribute="trailing" constant="9" id="SQY-hR-6Ad"/>
                     <constraint firstItem="rXb-T4-yMb" firstAttribute="centerY" secondItem="Qt9-t5-iOv" secondAttribute="centerY" id="SaF-dt-zXZ"/>
                     <constraint firstAttribute="bottom" secondItem="EbI-Wk-CCv" secondAttribute="bottom" constant="14" id="Snd-09-jfD"/>
-                    <constraint firstItem="jUW-ZO-oLT" firstAttribute="leading" secondItem="aGQ-OF-WXB" secondAttribute="leading" id="UeZ-cX-WhA"/>
                     <constraint firstItem="EbI-Wk-CCv" firstAttribute="centerY" secondItem="Qt9-t5-iOv" secondAttribute="centerY" id="Vcs-PM-uOD"/>
                     <constraint firstItem="UPM-vO-BAb" firstAttribute="top" secondItem="3if-Xs-8Lv" secondAttribute="bottom" constant="102" id="W62-df-hdy"/>
                     <constraint firstAttribute="trailing" secondItem="3if-Xs-8Lv" secondAttribute="trailing" constant="40" id="X6b-IM-gmb"/>
                     <constraint firstItem="aGQ-OF-WXB" firstAttribute="top" secondItem="3if-Xs-8Lv" secondAttribute="bottom" constant="25" id="XBe-5E-DOQ"/>
                     <constraint firstItem="9e4-ci-JPQ" firstAttribute="top" secondItem="se5-gp-TjO" secondAttribute="top" id="Xkp-aI-WHZ"/>
                     <constraint firstItem="R2E-0y-EaA" firstAttribute="trailing" secondItem="aGQ-OF-WXB" secondAttribute="trailing" id="b9n-uX-rA6"/>
+                    <constraint firstItem="Bpl-Ox-GVU" firstAttribute="leading" secondItem="9e4-ci-JPQ" secondAttribute="trailing" constant="5" id="c3Z-Em-Uw3"/>
+                    <constraint firstItem="RKf-EU-J3Q" firstAttribute="trailing" secondItem="R2E-0y-EaA" secondAttribute="trailing" id="hnY-b4-w8H"/>
+                    <constraint firstItem="Bpl-Ox-GVU" firstAttribute="top" secondItem="3if-Xs-8Lv" secondAttribute="bottom" constant="128" id="mnw-u6-WjY"/>
                     <constraint firstItem="Qt9-t5-iOv" firstAttribute="leading" secondItem="se5-gp-TjO" secondAttribute="leading" constant="20" id="n3y-XG-Jvq"/>
-                    <constraint firstItem="jUW-ZO-oLT" firstAttribute="leading" secondItem="9e4-ci-JPQ" secondAttribute="trailing" constant="5" id="r28-fG-4si"/>
+                    <constraint firstItem="RKf-EU-J3Q" firstAttribute="leading" secondItem="R2E-0y-EaA" secondAttribute="leading" id="raI-au-pfs"/>
+                    <constraint firstItem="RKf-EU-J3Q" firstAttribute="leading" secondItem="9e4-ci-JPQ" secondAttribute="trailing" constant="5" id="rch-oh-6Us"/>
                     <constraint firstItem="rXb-T4-yMb" firstAttribute="leading" secondItem="Qt9-t5-iOv" secondAttribute="trailing" constant="7" id="sHg-nI-I4r"/>
                     <constraint firstAttribute="trailing" secondItem="EbI-Wk-CCv" secondAttribute="trailing" constant="20" id="vcT-Hr-gOd"/>
-                    <constraint firstAttribute="trailing" secondItem="jUW-ZO-oLT" secondAttribute="trailing" constant="50" id="xIZ-47-v2X"/>
                 </constraints>
             </view>
             <connections>
@@ -591,7 +725,7 @@ Gw
     </objects>
     <resources>
         <image name="KMImageNameElsei" width="15" height="14"/>
-        <image name="NSGoLeftTemplate" width="12" height="17"/>
-        <image name="NSGoRightTemplate" width="12" height="17"/>
+        <image name="NSGoLeftTemplate" width="10" height="14"/>
+        <image name="NSGoRightTemplate" width="10" height="14"/>
     </resources>
 </document>