You are here

public function PdfGeneratorInterface::setPageOrientation in PDF generator API 8

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

Set the paper orientation of the generated PDF pages.

Parameters

PdfGeneratorInterface::PORTRAIT|PdfGeneratorInterface::LANDSCAPE $orientation: The orientation of the PDF pages.

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

File

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

Class

PdfGeneratorInterface
Defines an interface for PDF generator plugins.

Namespace

Drupal\pdf_api\Plugin

Code

public function setPageOrientation($orientation = PdfGeneratorInterface::PORTRAIT);