PageDisplayMode

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

Namespace: Com\Tecnick\Pdf\Page

Backing type: string

File: PageDisplayMode.php line 35

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

Tags

Cases

UseNone

File: PageDisplayMode.php line 37

UseOutlines

File: PageDisplayMode.php line 39

UseThumbs

File: PageDisplayMode.php line 41

FullScreen

File: PageDisplayMode.php line 43

UseOC

File: PageDisplayMode.php line 45

UseAttachments

File: PageDisplayMode.php line 47

Methods

fromLoose()

File: PageDisplayMode.php line 58

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

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.

Parameters

  • $value : string|self: Display mode name or enum case.

Return values

self