wulfsolter / angular2-signaturepad

Angular2 Component for szimek / signature_pad
MIT License
176 stars 157 forks source link

Signature with Text #96

Closed musabibnusiraj closed 4 years ago

musabibnusiraj commented 4 years ago

Can I get a signature with something input text?

musabibnusiraj commented 4 years ago

I used this package. https://github.com/ramsatt/Angular9SignaturePad


  <canvas id="signature-pad" #sPad class="signature-pad" width="800" height="300"
              style="touch-action: none;"></canvas>
 this.vm.today = new Date();
    const canvas = document.getElementById('signature-pad') as HTMLCanvasElement;
    const ctx = canvas.getContext('2d');
    ctx.font = '15px sans-serif';
    ctx.fillText(this.vm.today, 20, 290);