Print HTML like a boss
- When 'window.print()' is called, the current document can be printed by the browser.
- In order to print custom HTML instead of the whole document, HTML will be injected into an iframe.
- When 'iframe.print()' is called, the injected HTML can be printed by the browser.
- HTML assets can also be injected into the iframe document and applied to the injected HTML.
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | The print job configuration. Properties
|