]> git.llucax.com Git - mecon/meconlib.git/blob - lib/MECON/PDF/Marco/medidas.php
PDF en camino
[mecon/meconlib.git] / lib / MECON / PDF / Marco / medidas.php
1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80 foldmethod=marker:
2 -------------------------------------------------------------------------------
3                              Ministerio de Economía
4                                     meconlib
5 -------------------------------------------------------------------------------
6 This file is part of meconlib.
7
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)
11 any later version.
12
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.
16  
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: lun oct 27 12:17:32 ART 2003
22 Autor:  Martin Marrese <mmarre@mecon.gov.ar>
23 -------------------------------------------------------------------------------
24 $Id$
25 -----------------------------------------------------------------------------*/
26
27 /**
28  * Medidas para cada formato de pagina.
29  */
30 return array (
31         // A4 {{{
32         'a4' => array (
33                 //Portrait {{{ 
34                 'portrait' => array (
35                         'Xi' => -40,  //Esquina inferior izquierda
36                         'Xf' => 490,  //Esquina inferior derecha
37                         'Yi' => -50, //Esquina inferior izquierda
38                         'Yf' => 700,  //Esquina superior izquierda
39                         //Encabezado {{{
40                         'encabezado' => array ( //Encabezado de cada pagina
41                                 'Xi' => -40,
42                                 'Xf' => 490,
43                                 'Yi' => 657,
44                                 'Yf' => 700,
45                                 'logo' => array (
46                                         'X' => -33,
47                                         'Y' => 665,
48                                     ),
49                                 'linea1' => array (
50                                         'Xi' => 110,
51                                         'Xf' => 110,
52                                         'Yi' => 657,
53                                         'Yf' => 700,
54                                     ),
55                                 'linea2' => array (
56                                         'Xi' => 404,
57                                         'Xf' => 404,
58                                         'Yi' => 657,
59                                         'Yf' => 700,
60                                     ),
61                                 'linea3' => array (
62                                         'Xi' => -40,
63                                         'Xf' => 110,
64                                         'Yi' => 657,
65                                         'Yf' => 666,
66                                     ),
67                                 'seccion' => array (
68                                         'Y'      => 685,
69                                         'font'   => 'Helvetica-Bold',
70                                         'height' => 12,
71                                     ),
72                                 'subseccion' => array (
73                                         'Y'      => 664,
74                                         'font'   => 'Helvetica',
75                                         'height' => 12,
76                                     ),
77                                 'paginador' => array (
78                                         'Y'      => 685,
79                                         'font'   => 'Helvetica',
80                                         'height' => 9,
81                                     ),
82                                 'fecha' => array (
83                                         'Y'      => 664,
84                                         'font'   => 'Helvetica',
85                                         'height' => 9,
86                                     ),
87                             ),
88                         //}}}
89                         //Titulos {{{
90                         'titulo' => array (
91                                     'Y'      => 630,
92                                     'font'   => 'Helvetica-Bold',
93                                     'height' => 16,
94                                 ),
95                         'subtitulo' => array (
96                                     'Y'      => 615,
97                                     'font'   => 'Helvetica',
98                                     'height' => 13
99                                 ),
100                         //}}}
101                         //Contenido {{{
102                         'contenido' => array (
103                                     'Y' => 580,
104                                 ),
105                         'celda_cabecera' => array (
106                                     'alto_linea' => 13,
107                                     'font'   => 'Helvetica-Bold',
108                                     'height' => 11,
109                                     'fillcolor'  => array (
110                                                     'red' => '1', 
111                                                     'blue' => '1',
112                                                     'green' => '1',
113                                                 ), 
114                                     'fill'  => array (
115                                             'mode' => 'fill+stroke',
116                                             'fillcolor' => array (
117                                                     'red' => '.3', 
118                                                     'blue' => '.3',
119                                                     'green' => '.3',
120                                                 ),
121                                             'strokecolor' => array (
122                                                     'red' => '0',
123                                                     'blue' => '0',
124                                                     'green' => '0'
125                                                 ),
126                                         ),
127                                 ),
128                         'celda_titulo' => array (
129                                     'alto_linea' => 13,
130                                     'font'   => 'Helvetica-Bold',
131                                     'height' => 11,
132                                     'fillcolor' => array (
133                                                     'red' => '0', 
134                                                     'blue' => '0',
135                                                     'green' => '0',
136                                                 ), 
137                                     'fill'  => array (
138                                             'mode' => 'fill+stroke',
139                                             'fillcolor' => array (
140                                                     'red' => '.7', 
141                                                     'blue' => '.7',
142                                                     'green' => '.7',
143                                                 ),
144                                             'strokecolor' => array (
145                                                     'red' => '0',
146                                                     'blue' => '0',
147                                                     'green' => '0'
148                                                 ),                                        
149                                         ),
150                                 ),
151                         'celda_comun' => array (
152                                     'alto_linea' => 10,
153                                     'font'   => 'Helvetica-Bold',
154                                     'height' => 8,
155                                     'fillcolor' => array (
156                                                     'red' => '0', 
157                                                     'blue' => '0',
158                                                     'green' => '0',
159                                                 ), 
160                                 ),
161                         //}}}
162                     ),
163                 //}}}
164                 //LandScape {{{
165                 'landscape' => array (
166                         ),
167                 //}}}
168             ),
169         //}}}
170         );
171
172 ?>