title: How to add header in pdf generated from HTML
body: <p>I am working on codeigniter. I want to add save to pdf functionality to one of the div. I am using html2canvas to print it. My problem is I want to add a logo &amp; some other information at the header of the pdf, which is not visible on the webpage. I dont know how to do this. Below is my code.</p>
  
  <pre><code>    &lt;script type='text/javascript' src="&lt;?php echo site_url('assets/js/html2canvas.js'); ?&gt;"&gt;&lt;/script&gt;
      &lt;script type='text/javascript' src="&lt;?php echo site_url('assets/js/jspdf.debug.js'); ?&gt;"&gt;&lt;/script&gt;
  
      &lt;script type='text/javascript'&gt;//&lt;![CDATA[ 
      function demoFromHTML() {
           var pdf = new jsPDF('p', 'pt', 'letter');
           pdf.addHTML($('#content')[0], function () {
           pdf.save('test.pdf');
           });
  
          specialElementHandlers = {
              '#bypassme': function (element, renderer) {
                  return true
              }
          };
          margins = {
              top: 30,
              bottom: 30,
              left: 30,
              width: '100%'
              //color: '#000'
          };
  
          pdf.addHTML()(
          source, // HTML string or DOM elem ref.
          margins.left, // x coord
          margins.top, { // y coord
          'width': margins.width, // max width of content on PDF
          'elementHandlers': specialElementHandlers
          },
  
          function (dispose) {
              pdf.save('test.pdf');
          }, margins);
      }
      &lt;/script&gt;
  
  &lt;div id="content"&gt;
  Save this to PDF
  &lt;/div&gt;
  </code></pre>
  
  <p>Pls help.</p>