You are here

protected function ConvertToPdf::setHeader in PDF using mPDF 8.2

Same name and namespace in other branches
  1. 8 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

File

src/Conversion/ConvertToPdf.php, line 141

Class

ConvertToPdf

Namespace

Drupal\pdf_using_mpdf\Conversion

Code

protected function setHeader() {
  $header = $this->settings['pdf_header'];
  if (isset($header) && $header != NULL) {
    $this->mpdf
      ->SetHTMLHeader($header);
  }
}