I\'m generating some PDF file on the fly using PHP. My problem is I need to insert line breaks in some part of the text that will be inserted in the PDF file. Something like
Your code reads
$pdf->InsertText('Line one\n\nLine two');
I don't know about the PDF library you're using but normally if you want \n to be interpreted as a line break you must use double quotes in PHP, e.g.
$pdf->InsertText("Line one\n\nLine two");