-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Feature Request
Enable text to be rotated
Feature description
Normally PDF text origin is the bottom-left of the text, however due to the coordinate system flip, it is now the top-left.
Questions:
Q: When rotating text where should the origin of rotation be?
- At point of usual render (top-left)
Q: Which direction should rotation be in (in PDF spec it states that rotation occurs anti-clockwise)
- anti-clockwise
Q: Do we reposition text so that it does not go above the origin (i.e. move the text down so the minY = text.options.y)
- No (we expose the transformation in the boundsOfString method which outputs the resultant x,y coords for the rendered text bounding box)
Q: Units of rotation
-Degrees
Once the questions are answered ill sort a PR out
Example implementation i've done
Metadata
Metadata
Assignees
Labels
No labels
