You are here

protected function PhpWkhtmlToPdf::getPaperSizes in Entity Print 8.2

Gets the paper sizes supported.

Return value

array An array of paper sizes keyed by their machine name.

Overrides PdfEngineBase::getPaperSizes

File

src/Plugin/EntityPrint/PrintEngine/PhpWkhtmlToPdf.php, line 254

Class

PhpWkhtmlToPdf
PHP wkhtmltopdf plugin.

Namespace

Drupal\entity_print\Plugin\EntityPrint\PrintEngine

Code

protected function getPaperSizes() {
  return [
    'a0' => 'A0',
    'a1' => 'A1',
    'a2' => 'A2',
    'a3' => 'A3',
    'a4' => 'A4',
    'a5' => 'A5',
    'a6' => 'A6',
    'a7' => 'A7',
    'a8' => 'A8',
    'a9' => 'A9',
    'b0' => 'B0',
    'b1' => 'B1',
    'b10' => 'B10',
    'b2' => 'B2',
    'b3' => 'B3',
    'b4' => 'B4',
    'b5' => 'B5',
    'b6' => 'B6',
    'b7' => 'B7',
    'b8' => 'B8',
    'b9' => 'B9',
    'ce5' => 'CE5',
    'comm10e' => 'Comm10E',
    'dle' => 'DLE',
    'executive' => 'Executive',
    'folio' => 'Folio',
    'ledger' => 'Ledger',
    'legal' => 'Legal',
    'letter' => 'Letter',
    'tabloid' => 'Tabloid',
  ];
}