     /// whether draws line number
     @objc dynamic var lineNumberMode: PrintVisibilityMode {
         
-        get { PrintVisibilityMode(self.settingValue(forKey: .lineNumber) as? Int) }
+        get { PrintVisibilityMode(self.settingValue(forKey: .lineNumber)) }
         set { self.setSettingValue(newValue.rawValue, forKey: .lineNumber) }
     }
     

    /// secondary footer item content type
    @objc dynamic var secondaryFooterContent: PrintInfoType {
        
        get { PrintInfoType(self.settingValue(forKey: .secondaryFooterContent) as? Int) }
        set { self.setSettingValue(newValue.rawValue, forKey: .secondaryFooterContent) }
    }
    

    
    
    /// KVO compatible getter for Cocoa print setting
    private func settingValue<Value>(forKey key: NSPrintInfo.AttributeKey) -> Value? {
        
        self.printInfo?.dictionary().value(forKey: key.rawValue) as? Value
    }
    
    
