Image(string file [, float x [, float y [, float w [, float h [, string type [, mixed link]]]]]])
file
x
null
, the current abscissa
is used.
y
null
, the current ordinate
is used; moreover, a page break is triggered first if necessary (in case automatic page breaking is enabled)
and, after the call, the current ordinate is moved to the bottom of the image.
w
h
type
JPG
, JPEG
, PNG
and GIF
.
If not specified, the type is inferred from the file extension.
link
// Insert a logo in the top-left corner at 300 dpi
$pdf->Image('logo.png', 10, 10, -300);
// Insert a dynamic image from a URL
$pdf->Image('http://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World', 60, 30, 90, 0, 'PNG');