title: How to Add watermarks in html to pdf exporter using javascript
body: <p>I want to add Watermarks when  I Download pdf</p>
  
  <pre><code>function PrintPanel() {
      var panel = document.getElementById("Result");
      var printWindow = window.open('', '', 'height=auto,width=auto,scrollbars=1,landscape=1');
  
      printWindow.document.write('&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;');
      printWindow.document.write('&lt;body&gt;');
  
      printWindow.document.write(panel.innerHTML);
      window.setTimeout("javascript:setLandScape();", 2000);
      printWindow.document.write('&lt;/body&gt;&lt;/html&gt;');
      printWindow.document.close();
  
  
      setTimeout(function () {
          printWindow.print();
      }, 500);
      return false;
  }
  </code></pre>