Trying to run the generateFDFTemplate function, but I keep getting:
exec error: Error: spawn pdftk ENOENT
I found a couple forum responses that say to install pdftk, but I already installed pdftk by using:
npm install pdftk --save
Here is my function that I am trying to execute. The test.pdf is the one from the repo:
var template = (path) => {
var pdfFiller = require('pdffiller');
// Override the default field name regex. Default: /FieldName: ([^\n]*)/
var nameRegex = null;
var FDF_data = pdfFiller.generateFDFTemplate(path, nameRegex, function(err, fdfData) {
if (err) throw err;
console.log(fdfData);
});
}
template('test.pdf')
Trying to run the generateFDFTemplate function, but I keep getting:
exec error: Error: spawn pdftk ENOENT
I found a couple forum responses that say to install pdftk, but I already installed pdftk by using:
npm install pdftk --save
Here is my function that I am trying to execute. The test.pdf is the one from the repo:
Any help is much appreciated