cre-dom2pdf
v1.0.1
Published
cre-dom2pdf
Downloads
5
Keywords
Readme
cre-dom2pdf DOM元素转为PDF下载到本地
Install
npm i cre-dom2pdf
# or
yarn add cre-dom2pdf
Usage
import { dom2pdf } from 'cre-dom2pdf'
/**
* DOM元素转pdf并下载到本地
* @param {Object} dom DOM对象
* @param {Function} success 成功后的回调
* @param {String} title 文件名,默认为时间戳
*/
dom2pdf (dom, success, title)