-
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
Justify text alignment using jsPDF #1245
Comments
@JPaulPunzalan not sure about justified text but the text can be centred by using doc.text(text,left,top,'center')
|
@Sarfarazsajjad |
I added to my refactored code the ability to justify text. See for this too |
Will be solved with #1433 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi All,
May I just ask if the justify alignment is possible using jsPDF? Especially, when I used the
split_text_to_size.js
plugin.Below is the method that I used to fit my long texts in the pdf.
`function getSplitText(text, doc){
var maxLength = doc.internal.pageSize.width - 60;
}`
They are currently aligned LEFT.
Thank you very much!
The text was updated successfully, but these errors were encountered: