0.1.0 • Published 6 years ago
html-dom-pdf v0.1.0
html-dom-pdf
A javascript tool of transform html-dom-pdf-dom to pdf, support paging Lossless.
Usage
install
# install
$ npm html-dom-pdf -Sproject
import HtmlDomPdf from 'html-dom-pdf';
new HtmlDomPdf(options).then(() => {
// do something.
});
const options = {}; // 👇| Object | Prop | Type | Default | Note |
|---|---|---|---|---|
| options. | selector | String | '' | 🔗 CSS Selectors |
| title | String | 'pdf' | filename of pdf | |
| marginTB | Number | 0 | margin of top & bottom | |
| marginLR | Number | 0 | margin of left & right | |
| offsetLimit | Number | 40 | Maximum offset: Get effective content when paging, trying to intercept upwards, this is the maximum offset |
Releases
- 2019-08-19
- 0.0.1