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");