PageLayout

Backed enum for the PDF /PageLayout name. The backing value of each case is the canonical name produced by Mode::getLayout().

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

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