Skip to content

Commit

Permalink
Replace Cell to MultiCell for text wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Oct 11, 2019
1 parent 4faadfb commit c2ab254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generator/BadgeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function generate($badgeId, $leadId, $hash = null, $isAdmin = false)
list($r, $g, $b) = sscanf($hex, "#%02x%02x%02x");
$pdf->SetTextColor($r, $g, $b);
// create cell
$pdf->Cell($width, 50, $this->getCustomText('text'.$i), 0, 0, $align, false, '', $stretch);
$pdf->MultiCell($width-$positionX, '', $this->getCustomText('text'.$i), 0, 'L', false, 1, $positionX, $positionY, true, $stretch);
}


Expand Down

0 comments on commit c2ab254

Please sign in to comment.