pdffillerjs / pdffiller

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

PDF with cas sensitive field names #100

Open fusiller opened 3 years ago

fusiller commented 3 years ago

Hi, just came across a PDF with 'Oui' and 'OUI' fields Using directly pdfFiller.fillForm( sourcePDF, destinationPDF, data, function(err) { where data is a simple object { 'name':'value', name:'value', etc.. } Error was : SyntaxError: Unexpected identifier at wrapSafe (internal/modules/cjs/loader.js:1053:16) at Module._compile (internal/modules/cjs/loader.js:1101:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47

I tried XFDF xml format and pdftk accepted both

and without error.