public function TcPdfv1::addPage in Entity Print 8.2
Add a string of HTML to a new page.
Parameters
string $content: The string of HTML to add to a new page.
Return value
$this
Overrides PrintEngineInterface::addPage
File
- src/
Plugin/ EntityPrint/ PrintEngine/ TcPdfv1.php, line 86
Class
- TcPdfv1
- TCPDF plugin implementation.
Namespace
Drupal\entity_print\Plugin\EntityPrint\PrintEngineCode
public function addPage($content) {
$this->tcpdf
->AddPage($this->configuration['orientation'], $this->configuration['page_format']);
$this->tcpdf
->writeHTML($content);
}