     var baseFontSize: CGFloat
     var currentFontSize: CGFloat
     var alignment: NSTextAlignment
+    
+    var text: String {
+        get {
+            if let textField = self.textEntryBox as? UITextField {
+                return textField.text ?? ""
+            }
+            if let textView = self.textEntryBox as? UITextView {
+                return textView.text ?? ""
+            }
+            return ""
+        }
+        set(updatedText) {
+            if let textField = self.textEntryBox as? UITextField {
+                textField.text = updatedText
+            }
+            if let textView = self.textEntryBox as? UITextView {
+                textView.text = updatedText
+            }
+        }
+    }
     
     init(frame: CGRect, multiline: Bool, alignment: NSTextAlignment) {
         

extension PDFFormTextField: UITextFieldDelegate {

    func textChanged() {
        self.value = self.getText() as AnyObject?
        self.delegate?.formFieldValueChanged(self)
    }
    

    
    override func didSetValue(_ value: AnyObject?) {
        if let value = value as? String {
            self.text = value
        }
    }
    
    func fontSizeForRect(_ rect: CGRect) -> CGFloat {
        
        return rect.size.height * 0.7
    }
    
    override func renderInContext(_ context: CGContext) {
