Table of contents
Namespace: Com\Tecnick\Pdf\Page
enum Orientation: string
Source: src/Orientation.php:35
Backed enum for the requested page orientation: ‘P’ (portrait), ‘L’ (landscape) or ’’ (auto-detect from the page dimensions).
Cases
Methods
fromLoose()
Resolve a loose orientation value to the matching enum case.
Accepts an enum instance (returned unchanged) or a string. As in getPageOrientedSize(), only the exact values ‘P’ and ‘L’ select an orientation; anything else means auto (never throws).
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Orientation identifier or enum case.
Returns: self
Source: src/Orientation.php:52