You are here

public function WkhtmltopdfGenerator::setFooter in PDF generator API 2.x

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

1 call to WkhtmltopdfGenerator::setFooter()
WkhtmltopdfGenerator::setter in src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php
Set the various options for PDF.

File

src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php, line 131
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,
  ));
}