X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/409294316ffb829e4fb995ce023b7ca279204771..4f3e113d600d55d0788f448ad478f1c9714f48ae:/lib/MECON/PDF/Marco.php?ds=inline diff --git a/lib/MECON/PDF/Marco.php b/lib/MECON/PDF/Marco.php index 7eccdd7..1b9d9a5 100644 --- a/lib/MECON/PDF/Marco.php +++ b/lib/MECON/PDF/Marco.php @@ -168,6 +168,7 @@ class MECON_PDF_Marco extends MECON_PDF { null) { parent::newPage($pagina, $orientacion); + $this->_resetConf(); if ($encabezado) { $this->espacioDisponible = $this->_config['encabezado']['Yi'] - 27; if ($this->countPages() === 1) { @@ -176,15 +177,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 +412,6 @@ class MECON_PDF_Marco extends MECON_PDF { * @access public */ function toPDF() { -// $this->newPage($this->tamanio); $this->_buildContent(); if ($this->getPages()) { $t = true;