I have the following HTML code:
<p>don't print this to pdf</p>
<p><font size="3" color="red">print this to pdf</font></p>
All I want to do is print to pdf everything found in the div with the id "pdf."
The "pdf" document should then be downloaded automatically with the filename "foobar.pdf."
I've been using jspdf for this, however, its only function is "text," which only accepts string data.
I want to send HTML to jspdf rather than text.