public function WkhtmltopdfGenerator::setHeader 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::setHeader()
Sets the header in the PDF.
Parameters
string $html: The text to be rendered as header.
Overrides PdfGeneratorInterface::setHeader
File
- src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php, line 103 - Contains \Drupal\pdf_api\Plugin\WkhtmltopdfGenerator.
Class
- WkhtmltopdfGenerator
- A PDF generator plugin for the WKHTMLTOPDF library.
Namespace
Drupal\pdf_api\Plugin\PdfGeneratorCode
public function setHeader($text) {
$this
->setOptions(array(
'header-right' => $text,
));
}