]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/PDF/Marco/medidas.php
Se cambia el estilo IMG en marco.css
[mecon/meconlib.git] / lib / MECON / PDF / Marco / medidas.php
index 1dbb57cd03d264af8c4f6c39e8fa7acc601bbf1f..c0b6ff68fe40da778626f3812acb91dbdd4e25b4 100644 (file)
@@ -27,44 +27,35 @@ $Id$
 /**
  * Medidas para cada formato de pagina.
  */
 /**
  * Medidas para cada formato de pagina.
  */
-
 return array (
         // A4 {{{
         'a4' => array (
                 //Portrait {{{ 
                 'portrait' => array (
 return array (
         // A4 {{{
         'a4' => array (
                 //Portrait {{{ 
                 'portrait' => array (
-                        'Xi' => -40,  //Esquina inferior izquierda
-                        'Xf' => 490,  //Esquina inferior derecha
-                        'Yi' => -110, //Esquina inferior izquierda
-                        'Yf' => 700,  //Esquina superior izquierda
                         //Encabezado {{{
                         'encabezado' => array ( //Encabezado de cada pagina
                         //Encabezado {{{
                         'encabezado' => array ( //Encabezado de cada pagina
-                                'Xi' => -40,
-                                'Xf' => 490,
+                                'Xi' => 0,
+                                'Xf' => 530,
                                 'Yi' => 657,
                                 'Yf' => 700,
                                 'logo' => array (
                                 'Yi' => 657,
                                 'Yf' => 700,
                                 'logo' => array (
-                                        'X' => -33,
+                                        'X' => 7,
                                         'Y' => 665,
                                         'Y' => 665,
+                                        'path' =>
+                                        '/home/mmarrese/public_html/meconlib/www/images/pdf_logo_portrait.jpg',
                                     ),
                                 'linea1' => array (
                                     ),
                                 'linea1' => array (
-                                        'Xi' => 110,
-                                        'Xf' => 110,
+                                        'Xi' => 150,
+                                        'Xf' => 150,
                                         'Yi' => 657,
                                         'Yf' => 700,
                                     ),
                                 'linea2' => array (
                                         'Yi' => 657,
                                         'Yf' => 700,
                                     ),
                                 'linea2' => array (
-                                        'Xi' => 404,
-                                        'Xf' => 404,
+                                        'Xi' => 444,
+                                        'Xf' => 444,
                                         'Yi' => 657,
                                         'Yf' => 700,
                                     ),
                                         'Yi' => 657,
                                         'Yf' => 700,
                                     ),
-                                'linea3' => array (
-                                        'Xi' => -40,
-                                        'Xf' => 110,
-                                        'Yi' => 657,
-                                        'Yf' => 666,
-                                    ),
                                 'seccion' => array (
                                         'Y'      => 685,
                                         'font'   => 'Helvetica-Bold',
                                 'seccion' => array (
                                         'Y'      => 685,
                                         'font'   => 'Helvetica-Bold',
@@ -99,11 +90,191 @@ return array (
                                     'height' => 13
                                 ),
                         //}}}
                                     '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 {{{
                 'landscape' => array (
                     ),
                 //}}}
                 //LandScape {{{
                 'landscape' => array (
-                        ),
+                        //Encabezado {{{
+                        'encabezado' => array ( //Encabezado de cada pagina
+                                'Xi' => 0,
+                                'Yi' => 487,
+                                'Xf' => 700,
+                                'Yf' => 530,
+                                'logo' => array (
+                                        'X' => 7,
+                                        'Y' => 521,
+                                        'path' =>
+                                        '/home/mmarrese/public_html/meconlib/www/images/pdf_logo_landscape.jpg',
+                                    ),
+                                'linea1' => array (
+                                        'Xi' => 150,
+                                        'Xf' => 150,
+                                        'Yi' => 487,
+                                        'Yf' => 530,
+                                    ),
+                                'linea2' => array (
+                                        'Xi' => 614,
+                                        'Xf' => 614,
+                                        'Yi' => 487,
+                                        'Yf' => 530,
+                                    ),
+                                'seccion' => array (
+                                        'Y'      => 515,
+                                        'font'   => 'Helvetica-Bold',
+                                        'height' => 12,
+                                    ),
+                                'subseccion' => array (
+                                        'Y'      => 494,
+                                        'font'   => 'Helvetica',
+                                        'height' => 12,
+                                    ),
+                                'paginador' => array (
+                                        'Y'      => 515,
+                                        'font'   => 'Helvetica',
+                                        'height' => 9,
+                                    ),
+                                'fecha' => array (
+                                        'Y'      => 494,
+                                        'font'   => 'Helvetica',
+                                        'height' => 9,
+                                    ),
+                            ),
+                        //}}}
+                        //Titulos {{{
+                        'titulo' => array (
+                                    'Y'      => 460,
+                                    'font'   => 'Helvetica-Bold',
+                                    'height' => 16,
+                                ),
+                        'subtitulo' => array (
+                                    'Y'      => 445,
+                                    'font'   => 'Helvetica',
+                                    'height' => 13,
+                                ),
+                        //}}}
+                        //Contenido {{{
+                        'contenido' => array (
+                                    'Y' => 422,
+                                ),
+                        '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',
+                                                ), 
+                                ),
+                        //}}}
+                    ), 
                 //}}}
             ),
         //}}}
                 //}}}
             ),
         //}}}