How can I put new line(<br> or \\n) in TCPDF?

心不动则不痛 提交于 2019-12-02 13:25:53

I think this will help you::

<?php
  $needles = array("<br>", "&#13;", "<br/>", "\n");
  $replacement = "<br />";
  HEADER_STRING = str_replace($needles, $replacement, HEADER_STRING);
?>

Also do change in HEADER_TITLE. This will work.

JochenT
$pdf->Ln(); 

From here:

public #Ln( $h = '', $cell = false )

Performs a line break. The current abscissa goes back to the left margin and the ordinate increases by the amount passed in parameter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!