HummusJS icon indicating copy to clipboard operation
HummusJS copied to clipboard

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

Open sagar-gavhane opened this issue 5 years ago • 2 comments

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();

sagar-gavhane avatar Apr 30 '19 07:04 sagar-gavhane

What's the lockForm?

chunyenHuang avatar May 05 '19 05:05 chunyenHuang

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

sagar-gavhane avatar Jun 05 '20 15:06 sagar-gavhane