Closed ifuschini closed 3 years ago
This is the problem
When I using the method "plainAddPlaceHolder" i see that all fields defined as new String('something') are empty.
For example:
pdfBuffer = plainAddPlaceholder({ pdfBuffer, reason: 'I have reviewed it.', signatureLength: 1612, });
inside the pdf this is the result:
This is my solution I have changed the row 78 in node-signpdf/dist/helpers/pdfkit/pdfobject.js from:
stringBuffer = Buffer.from(string,'ascii'); to:
stringBuffer = Buffer.from(string,'ascii');
stringBuffer = Buffer.from(string.toString(),'utf8');
and now the result is correct:
This issue has been automatically marked as stale because it has not had activity in the past 90 days. It will be closed if no further activity occurs. Thank you for your contributions.
This is the problem
When I using the method "plainAddPlaceHolder" i see that all fields defined as new String('something') are empty.
For example:
inside the pdf this is the result:
This is my solution I have changed the row 78 in node-signpdf/dist/helpers/pdfkit/pdfobject.js from:
stringBuffer = Buffer.from(string,'ascii');
to:stringBuffer = Buffer.from(string.toString(),'utf8');
and now the result is correct: