mPDF Manual – mPDF Variables

margBuffer

(mPDF >= 5.5)

Allows an (empty) end of block to extend beyond the bottom margin by this amount (mm). Avoids just the border/background-color of the end of a block being moved on to next page.

Default: 2

Usage

<?php
// Require composer autoload
require_once __DIR__ . '/vendor/autoload.php';

$mpdf = new \Mpdf\Mpdf(['margBuffer' => 7]);

Fork me on GitHub