mPDF Manual – mPDF functions

Image()

See Images.

void Image ( string $filename, int $x, int $y, int $width = 0, int $height = 0, string $ext = '', string $href_link = '', bool $paint = true, bool $constrain = true, bool $is_watermark = false bool $shownoimg = true, bool $allowvector = true)

Parameters

$filename

path

<?php

$mpdf->Image('files/images/frontcover.jpg', 0, 0, 210, 297, 'jpg', '', true, false);

// the last "false" allows a full page picture

See Also

  • SetAlpha() - Set the opacity and blend mode for Images
Fork me on GitHub