protected function ConvertToPdf::setHeader in PDF using mPDF 8
Same name and namespace in other branches
- 8.2 src/Conversion/ConvertToPdf.php \Drupal\pdf_using_mpdf\Conversion\ConvertToPdf::setHeader()
Set header for PDF file.
1 call to ConvertToPdf::setHeader()
- ConvertToPdf::generator in src/
Conversion/ ConvertToPdf.php - Generate the PDF file using the Mpdf library.
File
- src/
Conversion/ ConvertToPdf.php, line 173
Class
- ConvertToPdf
- Class ConvertToPdf.
Namespace
Drupal\pdf_using_mpdf\ConversionCode
protected function setHeader() {
$header = $this->settings['pdf_header'];
if (isset($header) && $header != NULL) {
$header = $this
->replaceTokens($header);
$this->mpdf
->SetHTMLHeader($header);
}
}