public function TcpdfGenerator::setHeader in PDF generator API 8
Same name and namespace in other branches
- 2.x src/Plugin/PdfGenerator/TcpdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\TcpdfGenerator::setHeader()
Sets the header in the PDF.
Parameters
string $html: The text to be rendered as header.
Overrides PdfGeneratorInterface::setHeader
File
- src/
Plugin/ PdfGenerator/ TcpdfGenerator.php, line 76 - Contains \Drupal\pdf_api\Plugin\TcpdfGenerator.
Class
- TcpdfGenerator
- A PDF generator plugin for the mPDF library.
Namespace
Drupal\pdf_api\Plugin\PdfGeneratorCode
public function setHeader($text) {
$this->generator
->SetPrintHeader($text);
}