Hello! My name is Paolo. I can't test your solution, because i'm facing the following problem:
When I try to open the svg generated file in the browser, Google Chrome and others, i'm getting this Error: attribute d: Expected number, "M 152,5 975 L 160 992,5 L 15…".
Can you please help me?