Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realign/html-dom-pdf
🔨 ⚙️ A javascript tool of transform html-dom to pdf, support paging Lossless.
https://github.com/realign/html-dom-pdf
dom-pdf dom2pdf dompdf html-pdf html2pdf htmlpdf lossless paging-lossless pdf
Last synced: about 2 months ago
JSON representation
🔨 ⚙️ A javascript tool of transform html-dom to pdf, support paging Lossless.
- Host: GitHub
- URL: https://github.com/realign/html-dom-pdf
- Owner: ReAlign
- Created: 2019-08-19T11:14:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T12:53:17.000Z (over 5 years ago)
- Last Synced: 2024-10-12T23:12:11.510Z (3 months ago)
- Topics: dom-pdf, dom2pdf, dompdf, html-pdf, html2pdf, htmlpdf, lossless, paging-lossless, pdf
- Language: JavaScript
- Homepage:
- Size: 189 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# html-dom-pdf
[![NPM version][npm-image]][npm-url]
[npm-image]: https://img.shields.io/npm/v/html-dom-pdf.svg?longCache=true&style=for-the-badge
[npm-url]: https://www.npmjs.com/package/html-dom-pdf> A javascript tool of transform html-dom-pdf-dom to pdf, support paging Lossless.
## Usage
### install
```bash
# install
$ npm html-dom-pdf -S
```### project
```js
import HtmlDomPdf from 'html-dom-pdf';new HtmlDomPdf(options).then(() => {
// do something.
});const options = {}; // 👇
```| Object | Prop | Type | Default | Note |
| ------- | ----------- | ------ | ------- | ----------------- |
| options. | selector | String | '' | [🔗 CSS Selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/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