Skip to content

Commit

Permalink
Merge pull request #11 from chunyenHuang/patch-1
Browse files Browse the repository at this point in the history
Fix: inheritedProperties is not a function
  • Loading branch information
galkahana authored Apr 17, 2018
2 parents cb54c59 + b0e2525 commit 6261ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filling-form-values/pdf-form-fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,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')) {
Expand Down

0 comments on commit 6261ead

Please sign in to comment.