You are here

public function MpdfGenerator::addPage in PDF generator API 8

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

Add a page to the generated PDF.

Parameters

string $html: The HTML of the page to be added.

Overrides PdfGeneratorInterface::addPage

File

src/Plugin/PdfGenerator/MpdfGenerator.php, line 106
Contains \Drupal\pdf_api\Plugin\MpdfGenerator.

Class

MpdfGenerator
A PDF generator plugin for the mPDF library.

Namespace

Drupal\pdf_api\Plugin\PdfGenerator

Code

public function addPage($html) {
  $this->generator
    ->addPage($html);
}