Dompdf\Canvas::image
Add an image to the pdf.
The image is placed at the specified x and y coordinates with the given width and height.
Signature
public function image(string
$img_url,
float
$x,
float
$y,
int
$w,
int
$h,
[string
$resolution = "normal"] )
Parameters
$img_url
— string- the path to the image
$x
— float- x position
$y
— float- y position
$w
— int- width (in pixels)
$h
— int- height (in pixels)
$resolution
— string- The resolution of the image