From d872fc90b9958579bd1bc3f9a1b388eaede0f34d Mon Sep 17 00:00:00 2001 From: "Simon Cornelius P. Umacob" Date: Wed, 29 Jun 2016 17:04:33 +0800 Subject: [PATCH] Expose the text widget's maximum length. --- src/core/annotation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/annotation.js b/src/core/annotation.js index 8d7964ed1..38ca66a66 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -659,6 +659,7 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() { WidgetAnnotation.call(this, params); this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q'); + this.data.maxLen = Util.getInheritableProperty(params.dict, 'MaxLen'); } Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {