/** * Adds an image to the current page. * * @param string $strImage * @param int $intX * @param int $intY * @param int $intWidth * @param int $intHeight * * @return void */ public function addImage($strImage, $intX, $intY, $intWidth = 0, $intHeight = 0) { $strFilename = uniStrtolower(basename($strImage)); if (uniStrpos($strFilename, ".svg") !== false) { $this->objPdf->ImageSVG(_realpath_ . $strImage, $intX, $intY, $intWidth, $intHeight); } else { $this->objPdf->Image(_realpath_ . $strImage, $intX, $intY, $intWidth, $intHeight); } }