node-signpdf icon indicating copy to clipboard operation
node-signpdf copied to clipboard

plainAddPlaceholder utf8 support

Open tomasantunes opened this issue 3 years ago • 0 comments

I need utf8 support on the placeholders. When I insert a name on the placeholder I get garbled text on the final signature.

Here is the code I'm using:

  let inputBuffer = plainAddPlaceholder({
      pdfBuffer,
      reason: 'Signed Certificate.',
      contactInfo: '[email protected]',
      name: 'JOÃO SILVA',
      location: 'Porto',
      signatureLength: totalLength,
  });

Here is how it looks on the signature: assinatura-unicode-issue

tomasantunes avatar Sep 02 '22 13:09 tomasantunes