X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/1e59047d0ade02bdded56831a308b58b4e0128b9..0e9c9ba492563e0d431b5f27a59a6ca3bf0d7cc5:/lib/MECON/PDF/Marco.php diff --git a/lib/MECON/PDF/Marco.php b/lib/MECON/PDF/Marco.php index ccd8c8b..1fdadaf 100644 --- a/lib/MECON/PDF/Marco.php +++ b/lib/MECON/PDF/Marco.php @@ -176,15 +176,15 @@ class MECON_PDF_Marco extends MECON_PDF { } } if (!is_null($seccion)) { - $this->excepciones[$this->countPages()]['seccion'] = $seccion; + $this->_excepciones[$this->numPage()]['seccion'] = $seccion; } if (!is_null($subseccion)) { - $this->excepciones[$this->countPages()]['subseccion'] = $subseccion; + $this->_excepciones[$this->numPage()]['subseccion'] = $subseccion; } } else { $this->espacioDisponible = $this->_config['encabezado']['Yf']; - $this->excepciones[$this->countPages()]['nova'] = true; + $this->_excepciones[$this->countPages()]['nova'] = true; } } @@ -411,7 +411,6 @@ class MECON_PDF_Marco extends MECON_PDF { * @access public */ function toPDF() { -// $this->newPage($this->tamanio); $this->_buildContent(); if ($this->getPages()) { $t = true; @@ -455,7 +454,7 @@ class MECON_PDF_Marco extends MECON_PDF { function addContent($contenido, $separador = true) { //Me aseguro de poner el separador siempre y cuando no sea el primer //objeto de la primer pagina. - if ($separador && $this->getPages()) { + if ($separador) { $this->_contenido[] = $this->_separador_defecto; } $this->_contenido[] = $contenido;