pdffillerjs / pdffiller

Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.
MIT License
289 stars 114 forks source link

Fixed generateFDFTemplate and generateFieldJSON #14

Closed whitef0x0 closed 9 years ago

whitef0x0 commented 9 years ago

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.

whitef0x0 commented 9 years ago

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.

whitef0x0 commented 9 years ago

Will this be merged?