Dompdf\Adapter\GD::__construct
Class constructor
Signature
public function __construct([string
$size = 'letter',
[string
$orientation = "portrait",
Dompdf
$dompdf,
[float
$aa_factor = 1.0,
[array
$bg_color = ]]]] )
Parameters
$size
—
string
- The size of image to create: array(x1,y1,x2,y2) or "letter", "legal", etc.
$orientation
—
string
- The orientation of the document (either 'landscape' or 'portrait')
$dompdf
—
Dompdf\Dompdf
$aa_factor
—
float
- Anti-aliasing factor, 1 for no AA
$bg_color
—
array
- Image background color: array(r,g,b,a), 0 <= r,g,b,a <= 1