mPDF Manual – HTML control tags

columnbreak

(mPDF ≥ 1.0)

columnbreak – Start a new Column

Description

<columnbreak />

Start a new Column in the document. Columns must be set using SetColumns() or <columns>. Height justification for the Columns is disabled when column breaks are set explicitly.

Attributes

No attributes

Examples

<?php

$mpdf = new \Mpdf\Mpdf();

$mpdf->SetColumns(2);

$mpdf->WriteHTML('
Some text...
<columnbreak />
Next column...
');

$mpdf->Output();

See Also

  • AddColumn() - PHP equivalent to <columnbreak>
  • SetColumns() - Control the use of multiple columns on the page
  • <columns> - Control the use of multiple columns on the page
Fork me on GitHub