| Methods |
public
|
__construct(Dompdf $dompdf)
Class constructor
Parameters
| $dompdf |
The current dompdf instance
|
|
#
|
abstract
public
|
render(Frame $frame)
Render a frame.
Render a frame.
Specialized in child classes
Parameters
| $frame |
The frame to render
|
Implemented by
|
#
|
protected
|
_render_background(Frame $frame, float[] $border_box): void
|
#
|
protected
|
_render_border(Frame $frame, float[] $border_box, string $corner_style = "bevel"): void
|
#
|
protected
|
_render_outline(Frame $frame, float[] $border_box, string $corner_style = "bevel"): void
|
#
|
protected
|
_background_image(string $url, float $x, float $y, float $width, float $height, Style $style)
Render a background image over a rectangular area
Render a background image over a rectangular area
Parameters
| $url |
The background image to load
|
| $x |
The left edge of the rectangular area
|
| $y |
The top edge of the rectangular area
|
| $width |
The width of the rectangular area
|
| $height |
The height of the rectangular area
|
| $style |
The associated Style object
|
Throws
|
#
|
protected
|
_border_dotted(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
_border_dashed(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
_border_solid(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
_apply_ratio(
string $side,
float $ratio,
float $top,
float $right,
float $bottom,
float $left,
float &$x,
float &$y,
float &$length,
float &$r1,
float &$r2,
)
|
#
|
protected
|
_border_double(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
_border_groove(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
_border_ridge(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
_tint($c): mixed
|
#
|
protected
|
_shade($c): mixed
|
#
|
protected
|
_border_inset(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
_border_outset(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
float $r1 = 0,
float $r2 = 0,
)
|
#
|
protected
|
dashPattern(string $style, float $width, float $length): array
Get the dash pattern and cap style for the given border style, width, and
line length.
Get the dash pattern and cap style for the given border style, width, and
line length.
The base pattern is adjusted so that it fits the given line length
symmetrically.
|
#
|
protected
|
_border_line(
float $x,
float $y,
float $length,
array $color,
float[] $widths,
string $side,
string $corner_style = "bevel",
string $pattern_name = "none",
float $r1 = 0,
float $r2 = 0,
)
Draws a solid, dotted, or dashed line, observing the border radius
Draws a solid, dotted, or dashed line, observing the border radius
|
#
|
protected
|
_set_opacity(float $opacity): void
|
#
|
protected
|
_debug_layout(float[] $box, string $color = "red", array $style = [])
|
#
|
protected
|
_resize_background_image(
float $img_width,
float $img_height,
float $container_width,
float $container_height,
array|string $bg_resize,
int $dpi,
): array
|
#
|