Orientation

Backed enum for the requested page orientation: 'P' (portrait), 'L' (landscape) or '' (auto-detect from the page dimensions).

Namespace: Com\Tecnick\Pdf\Page

Backing type: string

File: Orientation.php line 35

Backed enum for the requested page orientation: ‘P’ (portrait), ‘L’ (landscape) or ’’ (auto-detect from the page dimensions).

Tags

Cases

Portrait

File: Orientation.php line 37

Landscape

File: Orientation.php line 39

Auto

File: Orientation.php line 41

Methods

fromLoose()

File: Orientation.php line 52

public static fromLoose(string|self $value) : self

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).

Parameters

  • $value : string|self: Orientation identifier or enum case.

Return values

self