Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

export-pdf

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

export-pdf

导出PDF

  • 1.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
117
increased by23.16%
Maintainers
1
Weekly downloads
 
Created
Source

exportPDF

前端导出PDF文件,支持简繁字体

使用方法
import {to_pdf} from 'export-pdf';

var data = {
  content: [
    { text: 'First 天氣不錯', style: 'header'},
    'Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines',
  ],
  defaultStyle: {
    font: 'source',
  },
  styles: {
    header: {
      bold: false,
    },
  },
}

to_pdf({data})
参考资料

PDFMAKE

FAQs

Package last updated on 20 Jul 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc