CanvasFactory
in package
Create canvas instances
The canvas factory creates canvas instances based on the availability of rendering backends and config options.
Table of Contents
- get_instance() : Canvas
- __construct() : mixed
- Constructor is private: this is a static class
Methods
get_instance()
public
static get_instance(Dompdf $dompdf[, string|array<string|int, mixed> $paper = null ][, string $orientation = null ][, string $class = null ]) : Canvas
Parameters
- $dompdf : Dompdf
- $paper : string|array<string|int, mixed> = null
- $orientation : string = null
- $class : string = null
Return values
Canvas —__construct()
Constructor is private: this is a static class
private
__construct() : mixed