doc.fromHTML is not a function jsPDF
<p>Hello Im trying to save my html page to PDF and I have this code:</p>

<pre><code> &lt;div id="content"&gt;
&lt;h3&gt;Hello, this is a H3 tag&lt;/h3&gt;

&lt;p&gt;a pararaph&lt;/p&gt;
&lt;/div&gt;
&lt;div id="editor"&gt;&lt;/div&gt;
&lt;button id="cmd"&gt;Generate PDF&lt;/button&gt;

&lt;script&gt;
var doc = new jsPDF();
var specialElementHandlers = {
    '#editor': function (element, renderer) {
        return true;
    }
};

$('#cmd').click(function () {   
    doc.fromHTML($('#content').html(), 15, 15, {
        'width': 170,
            'elementHandlers': specialElementHandlers
    });
    doc.save('sample-file.pdf');
});

// This code is collected but useful, click below to jsfiddle link.
&lt;/script&gt;
</code></pre>

<p>I uploaded to jsFiddle and works... but when I try it in my browser doesnt works and I get the error doc.fromHTML is not a function. I have the jQuery and jsPDF references exactly like jsFiddle.</p>

<p><a href="https://jsfiddle.net/dpqgccL9/" rel="noreferrer">Example Code</a></p>