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
Error with Center Align and Split Text to Size #1545
Comments
Seems like on line 1524: |
Yeah. It is definitely an error. But the project owner doesn't merged some pull requests yet to fix those errors... |
But the fixing point is not the line you found... Wait |
The line is: text += ") Tj\n" + ((left - prevX) + delta) + " -" + leading + Change it to text += ") Tj\n" + f2((left - prevX) + delta) + " -" + f2(leading) + |
@arasabbasi made the fix, thanks! Yeah, would hope it makes it to the official build. |
@arasabbasi Hey, what's the open PR for this? |
Fixed by #1433 |
Hi everyone! I keep getting an error when trying to open a PDF with center align and split text to size on only a specific set of letters!
My code:
doc.text("Smoke Bombs", 0, 392, null, null, 'center' );
I opened the raw PDF and saw this:
(Smoke) Tj 1.7763568394002505e-15 -8 Td (Bombs) Tj ET BT /F1 8 Tf
It is definitely the 1.7763568394002505e-15 value but I don't know how that is calculated or really what that value is for?
I am using 'pt' for units as well.
The text was updated successfully, but these errors were encountered: