]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/PDF/Marco/medidas.php
Se borran cosas que no entran en mlib.
[mecon/meconlib.git] / lib / MECON / PDF / Marco / medidas.php
index ca4981aa0e4281b68cb931b02f82f38966f38e45..153db16b4b7a02cfbbb69223ade099f23838f451 100644 (file)
@@ -24,6 +24,25 @@ Autor:  Martin Marrese <mmarre@mecon.gov.ar>
 $Id$
 -----------------------------------------------------------------------------*/
 
 $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.
  */
 /**
  * Medidas para cada formato de pagina.
  */
@@ -32,60 +51,6 @@ return array (
         'a4' => array (
                 //Portrait {{{ 
                 'portrait' => array (
         'a4' => array (
                 //Portrait {{{ 
                 'portrait' => array (
-                        'Xi' => -40,  //Esquina inferior izquierda
-                        'Xf' => 490,  //Esquina inferior derecha
-                        'Yi' => -50, //Esquina inferior izquierda
-                        'Yf' => 700,  //Esquina superior izquierda
-                        //Encabezado {{{
-                        'encabezado' => array ( //Encabezado de cada pagina
-                                'Xi' => -40,
-                                'Xf' => 490,
-                                'Yi' => 657,
-                                'Yf' => 700,
-                                'logo' => array (
-                                        'X' => -33,
-                                        'Y' => 665,
-                                    ),
-                                'linea1' => array (
-                                        'Xi' => 110,
-                                        'Xf' => 110,
-                                        'Yi' => 657,
-                                        'Yf' => 700,
-                                    ),
-                                'linea2' => array (
-                                        'Xi' => 404,
-                                        'Xf' => 404,
-                                        'Yi' => 657,
-                                        'Yf' => 700,
-                                    ),
-                                'linea3' => array (
-                                        'Xi' => -40,
-                                        'Xf' => 110,
-                                        'Yi' => 657,
-                                        'Yf' => 666,
-                                    ),
-                                'seccion' => array (
-                                        'Y'      => 685,
-                                        'font'   => 'Helvetica-Bold',
-                                        'height' => 12,
-                                    ),
-                                'subseccion' => array (
-                                        'Y'      => 664,
-                                        'font'   => 'Helvetica',
-                                        'height' => 12,
-                                    ),
-                                'paginador' => array (
-                                        'Y'      => 685,
-                                        'font'   => 'Helvetica',
-                                        'height' => 9,
-                                    ),
-                                'fecha' => array (
-                                        'Y'      => 664,
-                                        'font'   => 'Helvetica',
-                                        'height' => 9,
-                                    ),
-                            ),
-                        //}}}
                         //Titulos {{{
                         'titulo' => array (
                                     'Y'      => 630,
                         //Titulos {{{
                         'titulo' => array (
                                     'Y'      => 630,
@@ -98,72 +63,59 @@ return array (
                                     'height' => 13
                                 ),
                         //}}}
                                     'height' => 13
                                 ),
                         //}}}
-                        //Contenido {{{
-                        'contenido' => array (
-                                    'Y' => 580,
-                                ),
-                        'celda_cabecera' => array (
-                                    'alto_linea' => 13,
+                    ),
+                //}}}
+                //LandScape {{{
+                'landscape' => array (
+                        //Titulos {{{
+                        'titulo' => array (
+                                    'Y'      => 460,
                                     'font'   => 'Helvetica-Bold',
                                     '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'      => 445,
+                                    'font'   => 'Helvetica',
+                                    'height' => 13,
                                 ),
                                 ),
-                        'celda_comun' => array (
-                                    'alto_linea' => 10,
+                        //}}}
+                    ), 
+                //}}}
+            ),
+        //}}}
+        // OFICIO {{{
+        'legal' => array (
+                //Portrait {{{ 
+                'portrait' => array (
+                        //Titulos {{{
+                        'titulo' => array (
+                                    'Y'      => 794,
                                     'font'   => 'Helvetica-Bold',
                                     'font'   => 'Helvetica-Bold',
-                                    'height' => 8,
-                                    'fillcolor' => array (
-                                                    'red' => '0', 
-                                                    'blue' => '0',
-                                                    'green' => '0',
-                                                ), 
+                                    'height' => 16,
+                                ),
+                        'subtitulo' => array (
+                                    'Y'      => 779,
+                                    'font'   => 'Helvetica',
+                                    'height' => 13
                                 ),
                         //}}}
                     ),
                 //}}}
                 //LandScape {{{
                 'landscape' => array (
                                 ),
                         //}}}
                     ),
                 //}}}
                 //LandScape {{{
                 'landscape' => array (
-                        ),
+                        //Titulos {{{
+                        'titulo' => array (
+                                    'Y'      => 470,
+                                    'font'   => 'Helvetica-Bold',
+                                    'height' => 16,
+                                ),
+                        'subtitulo' => array (
+                                    'Y'      => 455,
+                                    'font'   => 'Helvetica',
+                                    'height' => 13,
+                                ),
+                        //}}}
+                    ), 
                 //}}}
             ),
         //}}}
                 //}}}
             ),
         //}}}