Table of contents
Namespace: Com\Tecnick\Pdf\Page
enum PageDisplayMode: string
Source: src/PageDisplayMode.php:35
Backed enum for the PDF /PageMode name. The backing value of each case is the canonical name produced by Mode::getDisplay().
Cases
UseNone = 'UseNone'UseOutlines = 'UseOutlines'UseThumbs = 'UseThumbs'FullScreen = 'FullScreen'UseOC = 'UseOC'UseAttachments = 'UseAttachments'
Methods
fromLoose()
Resolve a loose display mode value to the matching enum case.
Accepts the canonical name (case-insensitively) or an enum instance (returned unchanged). Unknown values and the empty string fall back to UseNone, the PDF default for /PageMode.
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Display mode name or enum case.
Returns: self
Source: src/PageDisplayMode.php:58