X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/f82ac09838f49891a683ca0cf345adf06b5e75f9..cbce50ea7cf886c2c3cde328ab2dcd6e950e62d9:/lib/MECON/PDF/Marco/medidas.php?ds=sidebyside diff --git a/lib/MECON/PDF/Marco/medidas.php b/lib/MECON/PDF/Marco/medidas.php index c0b6ff6..de8d815 100644 --- a/lib/MECON/PDF/Marco/medidas.php +++ b/lib/MECON/PDF/Marco/medidas.php @@ -24,6 +24,25 @@ Autor: Martin Marrese $Id$ -----------------------------------------------------------------------------*/ +/** + * Este archivo contiene las coordenadas y estilos de los diferentes componentes + * de MECON_PDF_Marco. Las cordenadas Arrancan en (0,0) + + Y ^ + | + Yn +------------+ + | | + | | + | | + | | + | | + | | + | | + 0 +------------+-----> + 0 Xn X + */ + + /** * Medidas para cada formato de pagina. */ @@ -36,13 +55,13 @@ return array ( 'encabezado' => array ( //Encabezado de cada pagina 'Xi' => 0, 'Xf' => 530, - 'Yi' => 657, - 'Yf' => 700, + 'Yi' => 657, + 'Yf' => 700, //Siempre debe representar la altura maxima de la pagina 'logo' => array ( 'X' => 7, 'Y' => 665, 'path' => - '/home/mmarrese/public_html/meconlib/www/images/pdf_logo_portrait.jpg', + '/MECON/images/pdf_logo_portrait.jpg', ), 'linea1' => array ( 'Xi' => 150, @@ -90,67 +109,6 @@ return array ( 'height' => 13 ), //}}} - //Contenido {{{ - 'contenido' => array ( - 'Y' => 580, - ), - 'celda_cabecera' => array ( - 'alto_linea' => 13, - 'font' => 'Helvetica-Bold', - 'height' => 11, - 'fillcolor' => array ( - 'red' => '1', - 'blue' => '1', - 'green' => '1', - ), - 'fill' => array ( - 'mode' => 'fill+stroke', - 'fillcolor' => array ( - 'red' => '.3', - 'blue' => '.3', - 'green' => '.3', - ), - 'strokecolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0' - ), - ), - ), - 'celda_titulo' => array ( - 'alto_linea' => 13, - 'font' => 'Helvetica-Bold', - 'height' => 11, - 'fillcolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0', - ), - 'fill' => array ( - 'mode' => 'fill+stroke', - 'fillcolor' => array ( - 'red' => '.7', - 'blue' => '.7', - 'green' => '.7', - ), - 'strokecolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0' - ), - ), - ), - 'celda_comun' => array ( - 'alto_linea' => 10, - 'font' => 'Helvetica-Bold', - 'height' => 8, - 'fillcolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0', - ), - ), - //}}} ), //}}} //LandScape {{{ @@ -165,7 +123,7 @@ return array ( 'X' => 7, 'Y' => 521, 'path' => - '/home/mmarrese/public_html/meconlib/www/images/pdf_logo_landscape.jpg', + '/MECON/images/pdf_logo_landscape.jpg', ), 'linea1' => array ( 'Xi' => 150, @@ -213,65 +171,132 @@ return array ( 'height' => 13, ), //}}} - //Contenido {{{ - 'contenido' => array ( - 'Y' => 422, - ), - 'celda_cabecera' => array ( - 'alto_linea' => 13, + ), + //}}} + ), + //}}} + // OFICIO {{{ + 'legal' => array ( + //Portrait {{{ + 'portrait' => array ( + //Encabezado {{{ + 'encabezado' => array ( //Encabezado de cada pagina + 'Xi' => 0, + 'Xf' => 540, + 'Yi' => 821, + 'Yf' => 864, //Siempre debe representar la altura maxima de la pagina + 'logo' => array ( + 'X' => 7, + 'Y' => 829, + 'path' => + '/MECON/images/pdf_logo_portrait.jpg', + ), + 'linea1' => array ( + 'Xi' => 150, + 'Xf' => 150, + 'Yi' => 821, + 'Yf' => 864, + ), + 'linea2' => array ( + 'Xi' => 454, + 'Xf' => 454, + 'Yi' => 821, + 'Yf' => 864, + ), + 'seccion' => array ( + 'Y' => 849, + 'font' => 'Helvetica-Bold', + 'height' => 12, + ), + 'subseccion' => array ( + 'Y' => 828, + 'font' => 'Helvetica', + 'height' => 12, + ), + 'paginador' => array ( + 'Y' => 849, + 'font' => 'Helvetica', + 'height' => 9, + ), + 'fecha' => array ( + 'Y' => 828, + 'font' => 'Helvetica', + 'height' => 9, + ), + ), + //}}} + //Titulos {{{ + 'titulo' => array ( + 'Y' => 794, 'font' => 'Helvetica-Bold', - 'height' => 11, - 'fillcolor' => array ( - 'red' => '1', - 'blue' => '1', - 'green' => '1', - ), - 'fill' => array ( - 'mode' => 'fill+stroke', - 'fillcolor' => array ( - 'red' => '.3', - 'blue' => '.3', - 'green' => '.3', - ), - 'strokecolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0' - ), - ), + 'height' => 16, ), - 'celda_titulo' => array ( - 'alto_linea' => 13, - 'font' => 'Helvetica-Bold', - 'height' => 11, - 'fillcolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0', - ), - 'fill' => array ( - 'mode' => 'fill+stroke', - 'fillcolor' => array ( - 'red' => '.7', - 'blue' => '.7', - 'green' => '.7', - ), - 'strokecolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0' - ), - ), + 'subtitulo' => array ( + 'Y' => 779, + 'font' => 'Helvetica', + 'height' => 13 ), - 'celda_comun' => array ( - 'alto_linea' => 10, + //}}} + ), + //}}} + //LandScape {{{ + 'landscape' => array ( + //Encabezado {{{ + 'encabezado' => array ( //Encabezado de cada pagina + 'Xi' => 0, + 'Yi' => 497, + 'Xf' => 864, + 'Yf' => 540, + 'logo' => array ( + 'X' => 7, + 'Y' => 531, + 'path' => + '/MECON/images/pdf_logo_landscape.jpg', + ), + 'linea1' => array ( + 'Xi' => 150, + 'Xf' => 150, + 'Yi' => 497, + 'Yf' => 540, + ), + 'linea2' => array ( + 'Xi' => 778, + 'Xf' => 778, + 'Yi' => 497, + 'Yf' => 540, + ), + 'seccion' => array ( + 'Y' => 525, + 'font' => 'Helvetica-Bold', + 'height' => 12, + ), + 'subseccion' => array ( + 'Y' => 504, + 'font' => 'Helvetica', + 'height' => 12, + ), + 'paginador' => array ( + 'Y' => 525, + 'font' => 'Helvetica', + 'height' => 9, + ), + 'fecha' => array ( + 'Y' => 504, + 'font' => 'Helvetica', + 'height' => 9, + ), + ), + //}}} + //Titulos {{{ + 'titulo' => array ( + 'Y' => 470, 'font' => 'Helvetica-Bold', - 'height' => 8, - 'fillcolor' => array ( - 'red' => '0', - 'blue' => '0', - 'green' => '0', - ), + 'height' => 16, + ), + 'subtitulo' => array ( + 'Y' => 455, + 'font' => 'Helvetica', + 'height' => 13, ), //}}} ),