alafr / SVG-to-PDFKit

Insert SVG into a PDF document created with PDFKit
MIT License
397 stars 111 forks source link

Transform rotate y z ignored #167

Open Kinatzo opened 2 years ago

Kinatzo commented 2 years ago

Is it possible to rotate a svg by y and z?

Example where it's not working:

https://alafr.github.io/SVG-to-PDFKit/examples/options.htm?svg-code=%3Csvg%20%20transform%3D%22rotate(10%2020%2030)%22%20viewBox%3D%220%200%20200px%20200px%22%3E%3Crect%20x%3D%2250px%22%20y%3D%2250px%22%20width%3D%22100px%22%20height%3D%22100px%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E&pagewidth=612&pageheight=792&compress=false&x=&y=&width=&height=&useCSS=true&assumePt=true&preserveAspectRatio=xMinYMin%20meet&showViewport=false