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
666 stars 104 forks source link

Support for some jspdf functions #90

Closed Fadiabb closed 5 years ago

Fadiabb commented 5 years ago

Hallo, The following jspdf functions are not supported in yWork-jspdf Fork : getLineHeightFactor() setLineDash()

trying to use them :

<html>
<script src="../node_modules/jspdf-yworks/dist/jspdf.min.js"></script>
<body>
<script>
 const pdf = new jsPDF("l", "mm", "a3");
   pdf.setLineDash();
   pdf.getLineHeightFactor();
</script>
</body>
</html>

throws Errors: Uncaught TypeError: pdf.getLineHeightFactor is not a function Uncaught TypeError: pdf.setLineDash is not a function

yGuy commented 5 years ago

Is there a use-case for these functions in SVG2PDF? Please elaborate. If this is an issue for our jspdf fork, then please file the issue with the respective project and be sure to provide the details.

Fadiabb commented 5 years ago

ok i will report it again by yWork-jsPDF