parallax/jsPDF

Modernize Source Code Examples

Open

#2930 opened on Sep 24, 2020

View on GitHub
 (13 comments) (3 reactions) (0 assignees)JavaScript (28,280 stars) (4,596 forks)batch import
difficulty:beginnerhacktoberfesthelp wantedpersistent

Description

JsPDF has a lot of code examples that haven't been looked at for quite some time and some of them are outdated.

Have a look at the examples and modernize them:

  • Use recent ES6 code
  • Add one or two TypeScript examples
  • Use jsPDF@2.x.x API
  • delete unused files
  • delete the examples/css folder and load required CSS libraries from a CDN
  • delete jquery (examples/js/jquery) and replace it with modern browser APIs
  • reduce code duplication in html files (styles)

Bonus: Add small examples for the three major UI frameworks: VueJs, Angular, and React. Setup the initial applications with @vue/cli, create-react-app, and @angular/cli then add jsPDF.

Contributor guide