From b0e252534c4acc10390fd49e1334d0f693a90fbc Mon Sep 17 00:00:00 2001 From: John Huang Date: Mon, 20 Nov 2017 17:51:11 -0800 Subject: [PATCH] Fix: inheritedProperties is not a function --- filling-form-values/pdf-form-fill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filling-form-values/pdf-form-fill.js b/filling-form-values/pdf-form-fill.js index 5b53896..9904ca1 100644 --- a/filling-form-values/pdf-form-fill.js +++ b/filling-form-values/pdf-form-fill.js @@ -133,7 +133,7 @@ function updateOptionButtonValue(handles,fieldDictionary,value) { function writeAppearanceXObjectForText(handles,formId,fieldsDictionary,text,inheritedProperties) { var rect = handles.reader.queryDictionaryObject(fieldsDictionary,'Rect').toPDFArray().toJSArray(); - da = fieldsDictionary.exists('DA') ? fieldsDictionary.queryObject('DA').toString():inheritedProperties('DA'); + da = fieldsDictionary.exists('DA') ? fieldsDictionary.queryObject('DA').toString():inheritedProperties['DA']; // register to copy resources from form default resources dict [would have been better to just refer to it...but alas don't have access for xobject resources dict] if(handles.acroformDict.exists('DR')) { @@ -522,4 +522,4 @@ function fillForm(writer,data) { module.exports = { fillForm:fillForm -} \ No newline at end of file +}