setPrintFooter($footer);
}
public function setMotionTitle(string $prefix, string $title): void
{
$this->headerPrefix = $prefix;
$this->headerTitle = $title;
}
public function Header(): void
{
if (!$this->pagegroupsused) {
// This is most likely a PDF-only application => we don't need the header
return;
}
$this->SetFont('helvetica', '', 10);
$title = '' . Html::encode($this->headerPrefix) . ' ';
$title .= '' . Html::encode($this->headerTitle) . '';
$this->writeHTMLCell(
170,
10,
25,
5,
$title,
['B' => ['width' => 0.3, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => [0, 0, 0]]],
1,
false,
true,
'C'
);
}
public function Footer(): void
{
if (!$this->pagegroupsused) {
// This is most likely a PDF-only application => we don't need page numbers
return;
}
$this->SetY(-15);
$this->SetFont('helvetica', '', 10);
$this->Cell(
185,
10,
\Yii::t('export', 'Page') . ' ' . $this->getGroupPageNo() . ' / ' . $this->getPageGroupAlias(),
0,
0,
'R',
false,
'',
0,
false,
'T',
'M'
);
}
}