-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Alignement #1078
Comments
@arasabbasi #1016 is about auto-table plugin and does not solve the problem. |
While I was refactoring the jspdf-Code I realized, that the code for handling alignments is broken. It simply doesnt work if you put multiple lines in to it like
You can check for my code #1419 and see, that my refactored code is working. |
@tsan below example works please try it doc.text(text,left,top,'center') can be used to center text. It can be used with array of lines as well but when it is used with array the center does not work right so I have used it in a loop for every object in the array.
|
Why should I try something which is just a workaround but not a fix? |
Ok, thumbs down. But still... it is just a workaround and not a real solution. We are programmers and not plumbers. |
Yeah, give me a thumbs down and give your own post a thumbs up. You get from me a thumbs up for your ingenuity too 👍 |
Will be solved with #1433 |
Hey,
I just try to align center text but when I do the same thing that the example, my text is not align center.
I copy/paste your example but still not working.
Help me please :p
The text was updated successfully, but these errors were encountered: