mPDF Manual – mPDF Variables

jSmaxWordLast

Maximum word spacing allowed (carried over) when finishing a last line.

Default set as a configuration variable

<?php
$mpdf->jSmaxWordLast = 2;

Default: 2

Fork me on GitHub