-
Notifications
You must be signed in to change notification settings - Fork 65
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
Incorrect full justification #175
Comments
savioret
added a commit
to savioret/ex-pdf-php
that referenced
this issue
May 13, 2023
…ustification broken in tables
savioret
added a commit
to savioret/ex-pdf-php
that referenced
this issue
May 13, 2023
…ustification broken in tables
Open
This also happens just using ezText when text is fully justified and when the text contains breaklines. This is also fixed in PR #177 : This code reproduces the problem: $pdf = new CezPDF('a4');
$pdf->selectFont('Helvetica');
$pdf->ezColumnsStart(['num' => 2, 'gap'=>20]);
$options = ['justification' => 'full'];
// Testing break lines should be considered as last lines
$text1 = "\nLorem ipsum dolor sit amet, vitae et sit posuere metus urna et vitae dolor consectetur adipiscing tristique nec odio id euismod."
."\nCurabitur euismod ex volutpat bibendum eleifend."
."\nDonec pretium pretium nibh."
."\nAt consectetur turpis porta et.\n";
$pdf->ezText($text1, 0, $options);
$pdf->ezColumnsStop();
$pdf->ezStream(); |
savioret
added a commit
to savioret/ex-pdf-php
that referenced
this issue
Jul 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In commit 00db904 the condition to call
adjustWrapText
was removed.It should be put back.
NOTE: Possible duplicate of #152
This is the condition that was removed:
Example to reproduce same as provided image snapshots:
Putting the condition back seems to fix the problem. I've been doing more testing and seems no collateral problems arise.

Thanks for your help !
The text was updated successfully, but these errors were encountered: