First of all, I have filled the form with hummusjs(https://github.com/galkahana/HummusJS) 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();
maybe you want to use the below code with
logpropertythe code you showed don't take any
logproperty