public function WkhtmltopdfGenerator::addPage in PDF generator API 8
Same name and namespace in other branches
- 2.x src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php \Drupal\pdf_api\Plugin\PdfGenerator\WkhtmltopdfGenerator::addPage()
Add a page to the generated PDF.
Parameters
string $html: The HTML of the page to be added.
Overrides PdfGeneratorInterface::addPage
1 call to WkhtmltopdfGenerator::addPage()
- WkhtmltopdfGenerator::setter in src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php - Set the various options for PDF.
File
- src/
Plugin/ PdfGenerator/ WkhtmltopdfGenerator.php, line 126 - Contains \Drupal\pdf_api\Plugin\WkhtmltopdfGenerator.
Class
- WkhtmltopdfGenerator
- A PDF generator plugin for the WKHTMLTOPDF library.
Namespace
Drupal\pdf_api\Plugin\PdfGeneratorCode
public function addPage($html) {
$this->generator
->addPage($html);
}