title: how to set font size of exported table in jspdf.js?
body: <p>I am using jspdf.debug.js to export pdf data from html page.Here is the function of controller that I am using. I made a string as html table that I want to export.</p>
  
  <pre><code>$scope.exportReport = function (fileName, fileType) {
     objReport.count = 0;   // for getting all records
     ReportService.getSaleDetail(objReport).then(function (result) {
          var strTable = "&lt;table id='tableReport'&gt;&lt;tr&gt;&lt;td style='width:400px'&gt;Date&lt;/td&gt;&lt;td style='width:50px'&gt;Order Id&lt;/td&gt;&lt;td style='width:130px'&gt;Product&lt;/td&gt;&lt;td style='width:120px'&gt;Gorss Price&lt;/td&gt;&lt;td style='width:160px'&gt;Currency&lt;/td&gt;&lt;td style='width:50px'&gt;Order Status&lt;/td&gt;&lt;td style='width:150px'&gt;Assigned To&lt;/td&gt;&lt;td style='width:150px'&gt;Assigned User Email&lt;/td&gt;&lt;td style='width:150px'&gt;Country&lt;/td&gt;&lt;/tr&gt;";
          var strRow = '';
          if (result.data.totalRecords &gt; 0) {
               var totalRecords = parseInt(result.data.totalRecords);
               var saleDataJson = result.data.saleDetail;
               for (var i = 0; i &lt; totalRecords; i++) {
                   strRow = '&lt;tr&gt;&lt;td&gt;' + saleDataJson[i].date + '&lt;/td&gt;' + '&lt;td&gt;' + saleDataJson[i].orderId + '&lt;/td&gt;' + '&lt;td&gt;' + saleDataJson[i].product + '&lt;/td&gt;' + '&lt;td&gt;' + (1 * saleDataJson[i].grossPrice).toFixed(2) + '&lt;/td&gt;' + '&lt;td&gt;' + saleDataJson[i].currency + '&lt;/td&gt;' + '&lt;td&gt;' + saleDataJson[i].orderStatus + '&lt;/td&gt;' + '&lt;td&gt;' + saleDataJson[i].assignedTo + '&lt;/td&gt;&lt;td&gt;' + saleDataJson[i].assignedUserEmail + '&lt;/td&gt;&lt;td&gt;' + saleDataJson[i].country + '&lt;/td&gt;&lt;/tr&gt;';
                   strTable += strRow;
               }
               strTable += "&lt;/table&gt;";
          }
          if (fileType === 'pdf') {
                  var pdf = new jsPDF('p', 'pt', 'letter')    // jsPDF(orientation, unit, format)
                          , source = strTable
                          , specialElementHandlers = {
                              // element with id of "bypass" - jQuery style selector
                              '#bypassme': function (element, renderer) {
                                  // true = "handled elsewhere, bypass text extraction"
                                  return true;
                              }
                          },
                  margins = {
                      top: 30,
                      bottom: 40,
                      left: 35,
                      width: 600
                  };
  
                  pdf.setFontSize(12);
                  pdf.text(200, 30, fileName);
                  pdf.setFontSize(8);
                  pdf.setFontStyle('italic');
                  pdf.text(420, 35, 'Total Records : ' + totalRecords);
                  pdf.fromHTML(
                          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) {
                      // dispose: object with X, Y of the last line add to the PDF
                      //          this allow the insertion of new lines after html
                      pdf.save(fileName + '.pdf');
                  },
                          margins
                          )
              }
  
          });
  
      };
  </code></pre>
  
  <p>and this method is exporting pdf file like this</p>
  
  <p><a href="https://i.stack.imgur.com/wnj9j.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wnj9j.png" alt="enter image description here"></a></p>
  
  <p>I tried style with  tang but it is not working
  How can lower the font size so that i can export pdf file properly ?</p>