Exemplo n.º 1
0
 /**
  * Print mult-iline cells
  *
  * @param            $w
  * @param            $h
  * @param            $txt
  * @param int        $border
  * @param string     $align
  * @param bool|false $fill
  * @param int        $ln Indicates where the current position should go after the
  *                       call. Possible values are: 0 - to the rigth. Default to 2
  */
 function MultiCell($w, $h, $txt, $border = 0, $align = 'J', $fill = false, $ln = 2)
 {
     if ($ln == 0) {
         $x = $this->GetX();
         $y = $this->GetY();
         parent::MultiCell($w, $h, $txt, $border, $align, $fill);
         $this->SetXY($x + $w, $y);
     } else {
         parent::MultiCell($w, $h, $txt, $border, $align, $fill);
     }
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct(15, 'L', 'mm', 'A4');
     $this->AliasNbPages();
     $this->SetAutoPageBreak(true, 20);
 }
Exemplo n.º 3
0
 /**
  * Private Method
  */
 function _out($s)
 {
     if ($this->state == 2 && $this->_intpl) {
         $this->tpls[$this->tpl]['buffer'] .= $s . "\n";
     } else {
         parent::_out($s);
     }
 }
Exemplo n.º 4
0
 public function endPage()
 {
     if ($this->angle != 0) {
         $this->angle = 0;
         $this->_out('Q');
     }
     parent::_endpage();
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct(15, 'P', 'mm', 'A4');
     $this->AliasNbPages();
 }