title: Export whole html page to pdf using JSPdf generation
body: <p>I have already added these js file to my aspx page. But i still couldn't able to get pdf file of my table data. the generated pdf is blank.i need all table data to that generated pdf .please if any one know how to do this? </p>
  
  <pre><code> &lt;script src="../Script/jspdf.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/FileSaver.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/Blob.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/BlobBuilder.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/deflate.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/adler32cs.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/jspdf.plugin.addhtml.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/jspdf.plugin.from_html.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/jspdf.plugin.split_text_to_size.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/jspdf.plugin.standard_fonts_metrics.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/base64.js"&gt;&lt;/script&gt;
          &lt;script src="../Script/sprintf.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>// Here is my aspx table or div content:</p>
  
  <pre><code>&lt;div id="divReport" style="display: none"&gt;
  
              &lt;input type="button" id="btnSavePdf" value="Save as Pdf" /&gt;
                     &lt;table id="example"&gt;
                  &lt;tr id="trProject"&gt;
                      &lt;td&gt;&lt;span&gt;Project :&lt;/span&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;span id="spanProject" runat="server"&gt;&lt;/span&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                   &lt;tr&gt;
                      &lt;td&gt;&lt;span&gt;Total Number of Employee :&lt;/span&gt;&lt;/td&gt;
                      &lt;td&gt;
                      &lt;asp:Label ID="spanTotalEmp" runat="server" EnableViewState="false"  ClientIDMode="Static" &gt;&lt;/asp:Label&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;span&gt;Total Number of Hours :&lt;/span&gt;&lt;/td&gt;
                      &lt;td&gt;
  
                           &lt;asp:Label ID="spanTotalHours" runat="server" name="_name2" EnableViewState="false"  ClientIDMode="Static" &gt;&lt;/asp:Label&gt;
  
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>// Below is my Javascript button onclick code:     </p>
  
  <pre><code>$('#btnSavePdf').click(function () {
  
              var doc = new jsPDF('p', 'in', 'letter');
              var source = $('#divReport').html();
              var specialElementHandlers = {
                  '#bypassme': function (element, renderer) {
                      return true;
                  }
              };
  
              doc.fromHTML(
                  source, // HTML string or DOM elem ref.
                  0.5,    // x coord
                  0.5,    // y coord
                  {
                      'width': 7.5, // max width of content on PDF
                      'elementHandlers': specialElementHandlers
                  });
  
              doc.output('dataurl');
  </code></pre>