galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.14k stars 169 forks source link

TypeError: wrong arguments, pass 1 argument which is a valid index in the array. #380

Open sagar-gavhane opened 5 years ago

sagar-gavhane commented 5 years ago

First of all, I have filled the form then I need to remove editable fields or we can say lock form. When I'm doing this but it throws error TypeError: wrong arguments, pass 1 argument which is a valid index in the array.

const pdfWriter2 = hummus.createWriterToModify(source, {
  modifiedFilePath: target,
  log: __dirname + "/logs.txt",
});

lockForm(pdfWriter2)
pdfWriter2.end();
chunyenHuang commented 5 years ago

What's the lockForm?

sagar-gavhane commented 4 years ago

This is lock from. https://github.com/galkahana/HummusJSSamples/tree/master/lock-form