yWorks / svg2pdf.js

A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
MIT License
643 stars 96 forks source link

example added #247

Closed vajratools closed 11 months ago

vajratools commented 1 year ago

I struggled to find a way to implement the lib for my usecase. So I made a simple examle which creates dynamic svg from variable and saves in into pdf. Hope this will help to someone else like me.

vajratools commented 1 year ago

This is my first contribution in foss, please let me know why this change is not merged yet into the main repo?

yGuy commented 1 year ago

The demo is really super barebones and doesn't seem that helpful, IMHO. It only shows a single API functionality with some magic numbers no one will understand. The code is also quite inconsistent, using different loading techniques (CDN, local dependencies) and inconsistent coding (const + var).

I fail to see the value of this addition. Even with improved code quality and a nicer user experience at "runtime".