You are here

public function PdfGeneratorInterface::setPageSize in PDF generator API 8

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

Set the page size of the generated PDF pages.

Parameters

string $page_size: The page size (e.g. A4, B2, Letter).

4 methods override PdfGeneratorInterface::setPageSize()
DompdfGenerator::setPageSize in src/Plugin/PdfGenerator/DompdfGenerator.php
Set the page size of the generated PDF pages.
MpdfGenerator::setPageSize in src/Plugin/PdfGenerator/MpdfGenerator.php
Set the page size of the generated PDF pages.
TcpdfGenerator::setPageSize in src/Plugin/PdfGenerator/TcpdfGenerator.php
Set the page size of the generated PDF pages.
WkhtmltopdfGenerator::setPageSize in src/Plugin/PdfGenerator/WkhtmltopdfGenerator.php
Set the page size of the generated PDF pages.

File

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

Class

PdfGeneratorInterface
Defines an interface for PDF generator plugins.

Namespace

Drupal\pdf_api\Plugin

Code

public function setPageSize($page_size);