I have a text form, whose data is displayed in a PDF.
My problem is that when the value received by the PDF in variable exceeds 65 characters, instead of a line break, continue in the same line overlaying another element.
I have tried to apply the methods implode, wordwrap, but none has helped me to cut the string to reach 65 characters.
I tried to generate any condition to check if the length of the string exceeds 65 characters make a line break (<br
>). But neither it has served me.
$pdf_observations = $_GET['pdf_observations'];
$pdf->SetXY(29.6, 85.6);
$pdf->Write(0, "{$pdf_observations}");
Thanks!!
See Question&Answers more detail:os