Table of contents
Namespace: Com\Tecnick\Pdf\Signature
enum SignatureAppearanceMode: string
Source: src/Signature/SignatureAppearanceMode.php:37
Backed enum for the signature widget appearance stream slot: N (normal), R (rollover) or D (down), as validated by Tcpdf::setSignatureAppearanceStream().
Cases
Normal = 'N': Normal appearance (/N).Rollover = 'R': Rollover appearance (/R).Down = 'D': Down appearance (/D).
Methods
fromLoose()
Resolve a loose appearance mode value to the matching enum case.
Accepts N, R or D (case-insensitive) or an enum instance (returned unchanged). Unknown values throw, matching setSignatureAppearanceStream().
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Appearance mode or enum case.
Returns: self
Throws:
- Exception: if the value is not N, R or D.