mPDF Manual – mPDF Variables

allowCJKorphans

(mPDF ≥ 5.7)

bool $allowCJKorphans

CJK line-breaking is implemented in mPDF roughly according to accepted rules.

Configurable variables allow fine control of behaviour (except in tables):

<?php
$this->allowCJKorphans = true;

Values

  • false: always wrap to next line
  • true: squeeze or overflow

Default: true

Combined with

<?php
$this->allowCJKoverflow = false;

Values

  • false: squeeze
  • true: overflow (only selected)

Default: false

See also

Fork me on GitHub