]> git.llucax.com Git - mecon/meconlib.git/blob - lib/MECON/PDF/Marco/medidas.php
Se cambia el estilo IMG en marco.css
[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                         //Encabezado {{{
36                         'encabezado' => array ( //Encabezado de cada pagina
37                                 'Xi' => 0,
38                                 'Xf' => 530,
39                                 'Yi' => 657,
40                                 'Yf' => 700,
41                                 'logo' => array (
42                                         'X' => 7,
43                                         'Y' => 665,
44                                         'path' =>
45                                         '/home/mmarrese/public_html/meconlib/www/images/pdf_logo_portrait.jpg',
46                                     ),
47                                 'linea1' => array (
48                                         'Xi' => 150,
49                                         'Xf' => 150,
50                                         'Yi' => 657,
51                                         'Yf' => 700,
52                                     ),
53                                 'linea2' => array (
54                                         'Xi' => 444,
55                                         'Xf' => 444,
56                                         'Yi' => 657,
57                                         'Yf' => 700,
58                                     ),
59                                 'seccion' => array (
60                                         'Y'      => 685,
61                                         'font'   => 'Helvetica-Bold',
62                                         'height' => 12,
63                                     ),
64                                 'subseccion' => array (
65                                         'Y'      => 664,
66                                         'font'   => 'Helvetica',
67                                         'height' => 12,
68                                     ),
69                                 'paginador' => array (
70                                         'Y'      => 685,
71                                         'font'   => 'Helvetica',
72                                         'height' => 9,
73                                     ),
74                                 'fecha' => array (
75                                         'Y'      => 664,
76                                         'font'   => 'Helvetica',
77                                         'height' => 9,
78                                     ),
79                             ),
80                         //}}}
81                         //Titulos {{{
82                         'titulo' => array (
83                                     'Y'      => 630,
84                                     'font'   => 'Helvetica-Bold',
85                                     'height' => 16,
86                                 ),
87                         'subtitulo' => array (
88                                     'Y'      => 615,
89                                     'font'   => 'Helvetica',
90                                     'height' => 13
91                                 ),
92                         //}}}
93                         //Contenido {{{
94                         'contenido' => array (
95                                     'Y' => 580,
96                                 ),
97                         'celda_cabecera' => array (
98                                     'alto_linea' => 13,
99                                     'font'   => 'Helvetica-Bold',
100                                     'height' => 11,
101                                     'fillcolor'  => array (
102                                                     'red' => '1', 
103                                                     'blue' => '1',
104                                                     'green' => '1',
105                                                 ), 
106                                     'fill'  => array (
107                                             'mode' => 'fill+stroke',
108                                             'fillcolor' => array (
109                                                     'red' => '.3', 
110                                                     'blue' => '.3',
111                                                     'green' => '.3',
112                                                 ),
113                                             'strokecolor' => array (
114                                                     'red' => '0',
115                                                     'blue' => '0',
116                                                     'green' => '0'
117                                                 ),
118                                         ),
119                                 ),
120                         'celda_titulo' => array (
121                                     'alto_linea' => 13,
122                                     'font'   => 'Helvetica-Bold',
123                                     'height' => 11,
124                                     'fillcolor' => array (
125                                                     'red' => '0', 
126                                                     'blue' => '0',
127                                                     'green' => '0',
128                                                 ), 
129                                     'fill'  => array (
130                                             'mode' => 'fill+stroke',
131                                             'fillcolor' => array (
132                                                     'red' => '.7', 
133                                                     'blue' => '.7',
134                                                     'green' => '.7',
135                                                 ),
136                                             'strokecolor' => array (
137                                                     'red' => '0',
138                                                     'blue' => '0',
139                                                     'green' => '0'
140                                                 ),                                        
141                                         ),
142                                 ),
143                         'celda_comun' => array (
144                                     'alto_linea' => 10,
145                                     'font'   => 'Helvetica-Bold',
146                                     'height' => 8,
147                                     'fillcolor' => array (
148                                                     'red' => '0', 
149                                                     'blue' => '0',
150                                                     'green' => '0',
151                                                 ), 
152                                 ),
153                         //}}}
154                     ),
155                 //}}}
156                 //LandScape {{{
157                 'landscape' => array (
158                         //Encabezado {{{
159                         'encabezado' => array ( //Encabezado de cada pagina
160                                 'Xi' => 0,
161                                 'Yi' => 487,
162                                 'Xf' => 700,
163                                 'Yf' => 530,
164                                 'logo' => array (
165                                         'X' => 7,
166                                         'Y' => 521,
167                                         'path' =>
168                                         '/home/mmarrese/public_html/meconlib/www/images/pdf_logo_landscape.jpg',
169                                     ),
170                                 'linea1' => array (
171                                         'Xi' => 150,
172                                         'Xf' => 150,
173                                         'Yi' => 487,
174                                         'Yf' => 530,
175                                     ),
176                                 'linea2' => array (
177                                         'Xi' => 614,
178                                         'Xf' => 614,
179                                         'Yi' => 487,
180                                         'Yf' => 530,
181                                     ),
182                                 'seccion' => array (
183                                         'Y'      => 515,
184                                         'font'   => 'Helvetica-Bold',
185                                         'height' => 12,
186                                     ),
187                                 'subseccion' => array (
188                                         'Y'      => 494,
189                                         'font'   => 'Helvetica',
190                                         'height' => 12,
191                                     ),
192                                 'paginador' => array (
193                                         'Y'      => 515,
194                                         'font'   => 'Helvetica',
195                                         'height' => 9,
196                                     ),
197                                 'fecha' => array (
198                                         'Y'      => 494,
199                                         'font'   => 'Helvetica',
200                                         'height' => 9,
201                                     ),
202                             ),
203                         //}}}
204                         //Titulos {{{
205                         'titulo' => array (
206                                     'Y'      => 460,
207                                     'font'   => 'Helvetica-Bold',
208                                     'height' => 16,
209                                 ),
210                         'subtitulo' => array (
211                                     'Y'      => 445,
212                                     'font'   => 'Helvetica',
213                                     'height' => 13,
214                                 ),
215                         //}}}
216                         //Contenido {{{
217                         'contenido' => array (
218                                     'Y' => 422,
219                                 ),
220                         'celda_cabecera' => array (
221                                     'alto_linea' => 13,
222                                     'font'   => 'Helvetica-Bold',
223                                     'height' => 11,
224                                     'fillcolor'  => array (
225                                                     'red' => '1', 
226                                                     'blue' => '1',
227                                                     'green' => '1',
228                                                 ), 
229                                     'fill'  => array (
230                                             'mode' => 'fill+stroke',
231                                             'fillcolor' => array (
232                                                     'red' => '.3', 
233                                                     'blue' => '.3',
234                                                     'green' => '.3',
235                                                 ),
236                                             'strokecolor' => array (
237                                                     'red' => '0',
238                                                     'blue' => '0',
239                                                     'green' => '0'
240                                                 ),
241                                         ),
242                                 ),
243                         'celda_titulo' => array (
244                                     'alto_linea' => 13,
245                                     'font'   => 'Helvetica-Bold',
246                                     'height' => 11,
247                                     'fillcolor' => array (
248                                                     'red' => '0', 
249                                                     'blue' => '0',
250                                                     'green' => '0',
251                                                 ), 
252                                     'fill'  => array (
253                                             'mode' => 'fill+stroke',
254                                             'fillcolor' => array (
255                                                     'red' => '.7', 
256                                                     'blue' => '.7',
257                                                     'green' => '.7',
258                                                 ),
259                                             'strokecolor' => array (
260                                                     'red' => '0',
261                                                     'blue' => '0',
262                                                     'green' => '0'
263                                                 ),                                        
264                                         ),
265                                 ),
266                         'celda_comun' => array (
267                                     'alto_linea' => 10,
268                                     'font'   => 'Helvetica-Bold',
269                                     'height' => 8,
270                                     'fillcolor' => array (
271                                                     'red' => '0', 
272                                                     'blue' => '0',
273                                                     'green' => '0',
274                                                 ), 
275                                 ),
276                         //}}}
277                     ), 
278                 //}}}
279             ),
280         //}}}
281         );
282
283 ?>