public function initTempPaths()
{
if (empty($this->tempPath)) {
$this->tempPath = Yii::getAlias('@runtime/mpdf');
}
$prefix = $this->tempPath . DIRECTORY_SEPARATOR;
static::definePath('_MPDF_TEMP_PATH', "{$prefix}tmp");
static::definePath('_MPDF_TTFONTDATAPATH', "{$prefix}ttfontdata");
}