html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

SVG Path E notation

Open CWBudde opened this issue 4 years ago • 0 comments

Within the SVG specification it's possible to write numbers in an exponential notation such as 7.17e-6 instead of 0.0000717. Unfortunately this notation is unknown to the parser, causing the following error message

SVG Path Error : [e] is unknown

To circumvent this, the path preparation should be adapted to except the non-action 'e' or 'E'.

Such as

[a-df-zA-DF-Z] instead of [a-zA-Z]

CWBudde avatar Jan 10 '21 18:01 CWBudde