Table of contents
Namespace: Com\Tecnick\Pdf\Page
Backing type: string
File: PageLayout.php line 35
Backed enum for the PDF /PageLayout name. The backing value of each case is the canonical name produced by Mode::getLayout().
Tags
- since: 2026-07-17
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-page
Cases
SinglePage
File: PageLayout.php line 37
OneColumn
File: PageLayout.php line 39
TwoColumnLeft
File: PageLayout.php line 41
TwoColumnRight
File: PageLayout.php line 43
TwoPageLeft
File: PageLayout.php line 45
TwoPageRight
File: PageLayout.php line 47
Methods
fromLoose()
File: PageLayout.php line 58
public static fromLoose(string|self $value) : self
Accepts the canonical name, its aliases and the empty-string default, case-insensitively, or an enum instance (returned unchanged). Unknown values fall back to SinglePage, matching Mode::getLayout().
Parameters
- $value : string|self: Page layout name or enum case.
Return values
self