New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

html2pdf-dbs

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html2pdf-dbs

html2pdf

latest
npmnpm
Version
1.0.14
Version published
Maintainers
1
Created
Source

html2pdf

Convert HTML to PDF.

Install

npm i html2pdf-dbs -S

Usage

<script lang="ts" setup>
import { htmlToPdf } from "html2pdf-dbs";
</script>
<el-button @click="htmlToPdf('elementId', 'fileNme', {isSetWatermark: true, userName: '张三'})" type="primary">
    下载
</el-button>

Params

NameTypeDefaultDescription
elementIdString""需要转换的html父元素ID
fileNmeString""下载到本地的文件名称
isSetWatermarkBooleanfalse下载到本地的文件是否加水印
userNameString获取localStorage下userInfo.name水印文案(userName yyyy-MM-dd)

Keywords

html2pdf

FAQs

Package last updated on 10 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts