Inserting line breaks into PDF
问题 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: $pdf->InsertText(\'Line one\\n\\nLine two\'); So it prints: Line one Line two I know \\n doesn\'t work on PDF, but do you guys know any character or something that represents a line break on these files? 回答1: If you are using fpdf, in order to be able to use line breaks you will need to use a multi-line text cell as