Table of contents
Namespace: Com\Tecnick\Pdf
Backing type: string
File: DisplayZoom.php line 35
Backed enum for the named document zoom modes accepted by Tcpdf::setDisplayMode() (in addition to a numeric zoom factor).
Tags
- since: 2026-07-17
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf
Cases
FullPage
File: DisplayZoom.php line 38
FullWidth
File: DisplayZoom.php line 41
Real
File: DisplayZoom.php line 44
DefaultZoom
File: DisplayZoom.php line 47
Methods
fromLoose()
File: DisplayZoom.php line 57
public static fromLoose(string|self $value) : self
Accepts the canonical name or an enum instance (returned unchanged). Unknown values fall back to DefaultZoom, matching setDisplayMode().
Parameters
- $value : string|self: Named zoom or enum case.
Return values
self