You are here

public function PhpWkhtmlToPdf::addPage in Entity Print 8

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 PdfEngineInterface::addPage

File

src/Plugin/EntityPrint/PdfEngine/PhpWkhtmlToPdf.php, line 93

Class

PhpWkhtmlToPdf
@PdfEngine( id = "phpwkhtmltopdf", label = @Translation("Php Wkhtmltopdf") )

Namespace

Drupal\entity_print\Plugin\EntityPrint\PdfEngine

Code

public function addPage($content) {
  $this->pdf
    ->addPage($content);
}