cantoo-scribe / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
124 stars 24 forks source link

fix matrix transformation to handle rotations #39

Closed MatheusrdSantos closed 9 months ago

MatheusrdSantos commented 9 months ago

What?

fixes the support for matrix transformation on the method page.drawSvg

Why?

This PR was created due to this bug report: https://github.com/Hopding/pdf-lib/pull/1073#issuecomment-1805809987

How?

The matrix transformation was already supported, however it was missing the rotation it applies to the objects.

Testing?

New Dependencies?

Screenshots

now the labels are rotated and translated to the correct place image

Suggested Reading?

https://www.w3.org/TR/SVGTiny12/coords.html

Anything Else?

Checklist