Table of contents
Namespace: Com\Tecnick\Pdf\Graph
enum PathPaintOp: string
Source: src/PathPaintOp.php:36
Backed enum of the PDF path-painting operators (PDF 32000-1:2008 - 8.5.3). The backing value of each case is the canonical operator produced by Style::getPathPaintOp().
Cases
Stroke = 'S'CloseStroke = 's'Fill = 'f'CloseFill = 'h f'FillEvenOdd = 'f*'CloseFillEvenOdd = 'h f*'FillStroke = 'B'FillStrokeEvenOdd = 'B*'CloseFillStroke = 'b'CloseFillStrokeEvenOdd = 'b*'Clip = 'W n'ClipEvenOdd = 'W* n'Close = 'h'NoOp = 'n'
Methods
fromLoose()
Returns the canonical operator case matching the given path paint mode.
Accepts an enum case or any of the case-sensitive aliases accepted by Style::getPathPaintOp(). Unknown values return Stroke.
public static fromLoose(string|self $value): self
Parameters:
$value(string|self): Path paint mode or enum case.
Returns: self
Source: src/PathPaintOp.php:73