jsPDF html PlugIn
- Source:
Methods
(inner) html(source, optionsopt)
- Source:
Generate a PDF from an HTML element or string using.
Example
var doc = new jsPDF();
doc.html(document.body, {
callback: function (doc) {
doc.save();
}
});
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
source |
HTMLElement | string | The source HTMLElement or a string containing HTML. |
|||||||||
options |
Object |
<optional> |
Collection of settings Properties
|