Skip to content

Example to compare jsPDF addSvgAsImage() method and html2canvas to print an SVG image inside a PDF file.

Notifications You must be signed in to change notification settings

caneta/jspdfsvgasimage

Repository files navigation

jsPDF SVG output test

How to use this package

  • Clone repository
  • Go inside project directory: cd jspdfsvgasimage
  • Install dependencies: npm install
  • Build everything: npm run dist-all
  • Run local server: npm run local-server
  • Go with a browser to page: http://localhost:3000

Further npm commands

  • Other commands available with npm run inside package.json file

Tested on...

  • Firefox 63.0.3
  • Chrome 71
  • Internet Explorer 11 (but html2canvas render does not work)
  • Microsoft Edge 17

About

Example to compare jsPDF addSvgAsImage() method and html2canvas to print an SVG image inside a PDF file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published