This is my HTML code:
<!DOCTYPE html>
<html>
<body>
<p>don't print this to pdf</p>
<div id="pdf">
<p><font size="3" color="red">print this to pdf</font></p>
</div>
</body>
</html>
I want to print to pdf whatever is found in the div with an id of "pdf". The "pdf" document should then be automatically downloaded with a filename of "foobar.pdf" and I want to submit HTML to jspdf, not text.
Any help would be appreciated.