# html

jsPDF html PlugIn

Source:
  - modules/html.js, line 10

### Methods

#### (inner) html(source, optionsopt)

Source:
  - modules/html.js, line 749

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
Name | Type | Attributes | Description
--- | --- | --- | ---
`callback` | string | <optional> | The mandatory callback-function gets as first parameter the current jsPDF instance