You are here

public function WkhtmltopdfGenerator::setFooter in PDF generator API 8

Same name and namespace in other branches
  1. 2.x src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\WkhtmltopdfGenerator::setFooter()

Sets the footer in the PDF.

Parameters

string $html: The text to be rendered as footer.

Overrides PdfGeneratorInterface::setFooter

File

src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php, line 133
Contains \Drupal\pdf_api\Plugin\WkhtmltopdfGenerator.

Class

WkhtmltopdfGenerator
A PDF generator plugin for the WKHTMLTOPDF library.

Namespace

Drupal\pdf_api\Plugin\PdfGenerator

Code

public function setFooter($text) {
  $this
    ->setOptions(array(
    'footer-center' => $text,
  ));
}