protected function PdfGeneratorBase::pageSizes in PDF generator API 8
Same name and namespace in other branches
- 2.x src/Plugin/PdfGeneratorBase.php \Drupal\pdf_api\Plugin\PdfGeneratorBase::pageSizes()
Get an array of all valid page sizes, keyed by the page size name.
Return value
array An array of page sizes with the values an array of width and height and keys the page size name (e.g. A4).
2 calls to PdfGeneratorBase::pageSizes()
- PdfGeneratorBase::getPageDimensions in src/
Plugin/ PdfGeneratorBase.php - Get the dimensions of a given page size.
- PdfGeneratorBase::isValidPageSize in src/
Plugin/ PdfGeneratorBase.php - Checks if a given page size is valid.
File
- src/
Plugin/ PdfGeneratorBase.php, line 86 - Contains \Drupal\printable\Plugin\PrintableFormatBase.
Class
- PdfGeneratorBase
- Provides a base class for PDF generator plugins.
Namespace
Drupal\pdf_api\PluginCode
protected function pageSizes() {
return array(
'A0' => array(
'width' => 0,
'height' => 0,
),
'A1' => array(
'width' => 0,
'height' => 0,
),
'A2' => array(
'width' => 0,
'height' => 0,
),
'A3' => array(
'width' => 0,
'height' => 0,
),
'A4' => array(
'width' => 0,
'height' => 0,
),
'A5' => array(
'width' => 0,
'height' => 0,
),
'A6' => array(
'width' => 0,
'height' => 0,
),
'A7' => array(
'width' => 0,
'height' => 0,
),
'A8' => array(
'width' => 0,
'height' => 0,
),
'A9' => array(
'width' => 0,
'height' => 0,
),
'B0' => array(
'width' => 0,
'height' => 0,
),
'B1' => array(
'width' => 0,
'height' => 0,
),
'B10' => array(
'width' => 0,
'height' => 0,
),
'B2' => array(
'width' => 0,
'height' => 0,
),
'B3' => array(
'width' => 0,
'height' => 0,
),
'B4' => array(
'width' => 0,
'height' => 0,
),
'B5' => array(
'width' => 0,
'height' => 0,
),
'B6' => array(
'width' => 0,
'height' => 0,
),
'B7' => array(
'width' => 0,
'height' => 0,
),
'B8' => array(
'width' => 0,
'height' => 0,
),
'B9' => array(
'width' => 0,
'height' => 0,
),
'C5E' => array(
'width' => 0,
'height' => 0,
),
'Comm10E' => array(
'width' => 0,
'height' => 0,
),
'DLE' => array(
'width' => 0,
'height' => 0,
),
'Executive' => array(
'width' => 0,
'height' => 0,
),
'Folio' => array(
'width' => 0,
'height' => 0,
),
'Ledger' => array(
'width' => 0,
'height' => 0,
),
'Legal' => array(
'width' => 0,
'height' => 0,
),
'Letter' => array(
'width' => 0,
'height' => 0,
),
'Tabloid' => array(
'width' => 0,
'height' => 0,
),
);
}