1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
2 -------------------------------------------------------------------------------
3 Ministerio de EconomÃa
5 -------------------------------------------------------------------------------
6 This file is part of meconlib.
8 meconlib is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your option)
13 meconlib is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License; if not,
18 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
20 -------------------------------------------------------------------------------
21 Creado: jue nov 6 16:13:38 ART 2003
22 Autor: Martin Marrese <mmarre@mecon.gov.ar>
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
27 require_once 'MECON/PDF/Contenido.php';
30 * Manejo de los separadores del contenido de los PDF's.
31 * @TODO Por ahora es muy basica y lo unico que agrega es un espacio en blanco
32 * (Disminuye el espacio disponible en MECON_PDF_Marco para el contenido), en un
33 * futuro la idea es que pueda variarse el separador.
35 class MECON_PDF_Separador extends MECON_PDF_Contenido {
38 * Altura de separacion por defecto
47 * @param int $altura Altura del separador.
52 function MECON_PDF_Separador($altura = 27) {
53 $this->_alto = $altura;
57 * Funcion que agrega el separador al PDF
59 * @param &Object $MARCO MECON_PDF_Marco.
64 function toPDF(&$MARCO) {
65 $MARCO->espacioDisponible -= $this->_alto;