You are here

protected function ConvertToPdf::setFooter in PDF using mPDF 8

Same name and namespace in other branches
  1. 8.2 src/Conversion/ConvertToPdf.php \Drupal\pdf_using_mpdf\Conversion\ConvertToPdf::setFooter()

Set footer for PDF file.

1 call to ConvertToPdf::setFooter()
ConvertToPdf::generator in src/Conversion/ConvertToPdf.php
Generate the PDF file using the Mpdf library.

File

src/Conversion/ConvertToPdf.php, line 241

Class

ConvertToPdf
Class ConvertToPdf.

Namespace

Drupal\pdf_using_mpdf\Conversion

Code

protected function setFooter() {
  $footer = $this->settings['pdf_footer'];
  if (isset($footer) && $footer != NULL) {
    $footer = $this
      ->replaceTokens($footer);
    $this->mpdf
      ->SetHTMLFooter($footer);
  }
}