public function WkhtmltopdfGenerator::setFooter in PDF generator API 8
Same name and namespace in other branches
- 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\PdfGeneratorCode
public function setFooter($text) {
$this
->setOptions(array(
'footer-center' => $text,
));
}