You are here

public function PdfGeneratorInterface::setHeader in PDF generator API 8

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

Sets the header in the PDF.

Parameters

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

4 methods override PdfGeneratorInterface::setHeader()
DompdfGenerator::setHeader in src/Plugin/PdfGenerator/DompdfGenerator.php
Sets the header in the PDF.
MpdfGenerator::setHeader in src/Plugin/PdfGenerator/MpdfGenerator.php
Sets the header in the PDF.
TcpdfGenerator::setHeader in src/Plugin/PdfGenerator/TcpdfGenerator.php
Sets the header in the PDF.
WkhtmltopdfGenerator::setHeader in src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php
Sets the header in the PDF.

File

src/Plugin/PdfGeneratorInterface.php, line 85
Contains \Drupal\pdf_api\Plugin\PdfGeneratorInterface.

Class

PdfGeneratorInterface
Defines an interface for PDF generator plugins.

Namespace

Drupal\pdf_api\Plugin

Code

public function setHeader($html);