SingleLineTextLayout example #1333
Unanswered
dan-willett
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Not an answer, just a +1 to this question. I've been through the docs and can see that TextAlignment is an option in LayoutSinglelineText and LayoutMultilineText, but I can't figure out how to actually use those global functions. I'll post here if I figure it out, but where these global functions work differently to page.drawText(), it appears to require options that I haven't needed to specify elsewhere (alignment, bounds, font) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Could someone please provide an example of using SingleLineTextLayout? I really need to right align some text, but it would be nice to have an example of how to use this to accomplish that.
https://pdf-lib.js.org/docs/api/interfaces/singlelinetextlayout
Beta Was this translation helpful? Give feedback.
All reactions