You can use a MultiCell
method descrypted in documentation as
This method allows printing text with line breaks. They can be
automatic (as soon as the text reaches the right border of the cell)
or explicit (via the
character). As many cells as necessary are
output, one below the other. Text can be aligned, centered or
justified. The cell block can be framed and the background painted.
This method can take some argument
MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]])
More information you can find on the http://www.fpdf.org in manual section.
In your case you can use it with line
//example parameters - use anything that suit your things
$width = 100;
$lineHeight = 4;
$pdf->MultiCell($width, $lineHeight, "{$pdf_observations}");
In this example if your string can't fit to provided width then the rest of the string will be brake into new line when every line have provided height.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…