mPDF Manual – mPDF functions

AddColumn()

(mPDF >= 2.2)

AddColumn – Start a new Column

Description

void AddColumn ( )

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.

Parameters

No parameters

Examples

Example #1

<?php

$mpdf = new mPDF();

$mPDF->SetColumns(2);

$mpdf->WriteHTML('
Some text...
');

$mpdf->AddColumn();

$mpdf->WriteHTML('
Next column...
');

$mpdf=Output();

?>

See Also

  • <columnbreak> - HTML equivalent to AddColumn()
  • SetColumns() - Control the use of multiple columns on the page
  • <columns> - Control the use of multiple columns on the page