title: How to use jsPDF library?
body: <p>I want to save my webpage as PDF.
  I've tried using this solution:</p>
  
  <pre><code>var doc = new jsPDF();
  var specialElementHandlers = {
      '#editor': function (element, renderer) {
          return true;
      }
  };
  
  $('#printPDF').click(function () {
      doc.fromHTML($('body').get(0), 15, 15, {
          'width': 170,
              'elementHandlers': specialElementHandlers
      });
      doc.save('sample.pdf');
  });
  </code></pre>
  
  <p>But I'm getting blank pdf.
  <strong>Is there any correction or solution to save the webpage as a PDF?</strong></p>