Skip to content

๐Ÿ”จ โš™๏ธ A javascript tool of transform html-dom to pdf, support paging Lossless.

Notifications You must be signed in to change notification settings

ReAlign/html-dom-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

html-dom-pdf

NPM version

A javascript tool of transform html-dom-pdf-dom to pdf, support paging Lossless.

Usage

install

# install
$ npm html-dom-pdf -S

project

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

About

๐Ÿ”จ โš™๏ธ A javascript tool of transform html-dom to pdf, support paging Lossless.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published