Skip to content

Commit

Permalink
Set automated full justification to 90 %
Browse files Browse the repository at this point in the history
  • Loading branch information
ole1986 committed Sep 25, 2019
1 parent 5ef0be1 commit 14d8a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3003,8 +3003,8 @@ public function addText($x, $y, $size, $text, $width = 0, $justification = 'left
return $v['text'];
}, $parts));

// only adjust full, when 80 percent of the width is used
if (($justification == 'full' && ($orgWidth / 100 * 80) < ($orgWidth - $width)) || $justification != 'full') {
// only adjust full, when 90 percent of the width is used
if (($justification == 'full' && ($orgWidth / 100 * 90) < ($orgWidth - $width)) || $justification != 'full') {
$this->adjustWrapText($parsedText, $orgWidth - $width, $orgWidth, $x, $wordSpaceAdjust, $justification);
}

Expand Down

0 comments on commit 14d8a44

Please sign in to comment.