/**
         * tag : DRAW
         * mode : CLOSE
         *
         * @param  array $param
         * @return boolean
         */
        protected function _tag_close_DRAW($param)
        {
            if ($this->_isForOneLine) return false;

            $this->pdf->SetAlpha(1.);
            $this->pdf->undoTransform();
            $this->pdf->clippingPathStop();

            $this->_maxX = $this->parsingCss->value['old_maxX'];
            $this->_maxY = $this->parsingCss->value['old_maxY'];
            $this->_maxH = $this->parsingCss->value['old_maxH'];

            $marge = array();
            $marge['l'] = $this->parsingCss->value['border']['l']['width'];
            $marge['r'] = $this->parsingCss->value['border']['r']['width'];
            $marge['t'] = $this->parsingCss->value['border']['t']['width'];
            $marge['b'] = $this->parsingCss->value['border']['b']['width'];

            $x = $this->parsingCss->value['x'];
            $y = $this->parsingCss->value['y'];
            $w = $this->parsingCss->value['width']+$marge['l']+$marge['r'];
            $h = $this->parsingCss->value['height']+$marge['t']+$marge['b'];

            if ($this->parsingCss->value['position']!='absolute') {
                $this->pdf->setXY($x+$w, $y);

                $this->_maxX = max($this->_maxX, $x+$w);
                $this->_maxY = max($this->_maxY, $y+$h);
                $this->_maxH = max($this->_maxH, $h);
                $this->_maxE++;
            } else {
                // position
                $this->pdf->setXY($this->parsingCss->value['xc'], $this->parsingCss->value['yc']);

                $this->_loadMax();
            }

            $block = ($this->parsingCss->value['display']!='inline' && $this->parsingCss->value['position']!='absolute');

            $this->parsingCss->load();
            $this->parsingCss->fontSet();
            $this->_loadMargin();

            if ($block) $this->_tag_open_BR(array());
            if ($this->_debugActif) $this->_DEBUG_add('DRAW', false);

            $this->_isInDraw = null;

            return true;
        }
コード例 #2
0
ファイル: html2pdf.class.php プロジェクト: RomLAURENT/Jar2Fer
 /**
  * tag : END_LAST_PAGE
  * mode : CLOSE
  *
  * @param  array $param
  * @return void
  */
 protected function _tag_close_END_LAST_PAGE($param)
 {
     $this->parsingCss->load();
     $this->parsingCss->fontSet();
 }
コード例 #3
0
ファイル: html2pdf.class.php プロジェクト: oswida/lms
 /**
  * tag : STRIKE
  * mode : CLOSE
  *
  * @param  array $param
  * @return boolean
  */
 protected function _tag_close_STRIKE($param)
 {
     $this->parsingCss->load();
     $this->parsingCss->fontSet();
     return true;
 }