title: How to add watermark in PDF genereted from jsPDF?
body: <p>I am generating PDF from canva and using jsPDF to generate it.</p>
  
  <p><a href="https://github.com/MrRio/jsPDF" rel="nofollow noreferrer">https://github.com/MrRio/jsPDF</a></p>
  
  <p>Here is my code what I am using I want to add watermark into page.
  Can anyone help me in that ?</p>
  
  <pre><code> self.downloadCanvasObjectAsPDF = function () {
          canvas.deactivateAll().renderAll();
  
          try {
              canvas.getContext('2d');
              var imgData = canvas.toDataURL("image/jpeg", 1.0);
              var pdf = new jsPDF('p', 'mm', [297, 210]);
              pdf.addImage(imgData, 'JPEG', 5, 5);
              var namefile = 'export';
              if(namefile != null) {
                  pdf.save(namefile + ".pdf");
                  return true;
              }else{
                  return false;
              }
          } catch(e) {
              alert("Error description: " + e.message);
          }
      };
  </code></pre>