Code Monkey home page Code Monkey logo

jspdf's Introduction

功能简介

  • 本地开发热更新PDF视图
  • Node服务端自动导出PDF文件

开始使用

# 开发一个新的PDF文档
yarn start

# 生成一个新的PDF文档
yarn new

# 给PDF文档添加水印
yarn mark <optional>(default: 'markwater')

# 根据数据生成图表
yarn outcharts

# 导出报告
yarn out <optional>(default: 'WeHome_report')

# 清空src目录下的某个文件夹
yarn clean <optional>(default: 'output')

issue:

  • 如果开发模式报错
./node_modules/pdfkit/js/pdfkit.es5.js
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0)

将该文件删除后可正常工作

jspdf's People

Contributors

zhangjialegh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.