Fixed problem highlighted in issue #10. generateFDFTemplate and generateFieldJson (which the former uses) now work as expected.
Also in this PR, I've updated and fixed tests for fillForm, generateFDFTemplate and generateFieldJson.
Alos I've added a new parameter nameRegex to generateFDFTemplate and generateFieldJSON. If it is set to null, generateFieldJson will just use default regex to grab field title. Otherwise if user passes valid RegExp() object, user can use custom expression to extract text that they want to become their title.
Also after gaining access to the npm pdffiller module, I updated the package.json to reflect this change and am currently taking down the old node-pdffiller.
Fixed problem highlighted in issue #10. generateFDFTemplate and generateFieldJson (which the former uses) now work as expected.
Also in this PR, I've updated and fixed tests for fillForm, generateFDFTemplate and generateFieldJson.
Alos I've added a new parameter
nameRegex
to generateFDFTemplate and generateFieldJSON. If it is set to null, generateFieldJson will just use default regex to grab field title. Otherwise if user passes valid RegExp() object, user can use custom expression to extract text that they want to become their title.