Node->Attributes['SRC']; if ($tmp = preg_replace('/^'.preg_quote(PROTOCOL.SERVER_NAME.(defined('PORT')?':'.PORT : '').rtrim(BASE_PATH, '/'), '/').'/', FULL_PATH, $src)) { $this->ImageFile = $tmp; $this->ImageInfo = getimagesize($this->ImageFile); $this->ImageInfo[0] *= 72 / 96; $this->ImageInfo[1] *= 72 / 96; } else { } parent::Closed(); } function CheckDimensions() { $elem = $this; do { $elem->SetCSSProperty('width', $elem->GetCSSProperty('width') + $this->ImageInfo[0]); $elem->SetCSSProperty('height', $this->ImageInfo[1]); $elem = $elem->Parent; } while ($elem && $elem->GetDisplayLevel() == 'inline'); $this->GetLineBox()->CurX += $this->ImageInfo[0]; } function CalcMinMaxContentWidth() { $this->MinContentWidth = $this->ImageInfo[0]; $this->MaxContentWidth = $this->ImageInfo[0]; parent::CalcMinMaxContentWidth(); } function DrawAt($page, $x=0, $y=0, $spacer_w=0) { if ($this->ImageFile) { if (defined('PDF_DEBUG_NO_TEXT')) return ; $page->DrawImage($this->ImageFile, $x, $y, $this->GetCSSProperty('width'), $this->GetCSSProperty('height')); } } }