]> git.llucax.com Git - mecon/meconlib.git/blob - lib/MECON/PDF/Marco/medidas.php
578a378770bac23f02950e8f310ddbbe207b032b
[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  * Este archivo contiene las coordenadas y estilos de los diferentes componentes
29  * de MECON_PDF_Marco. Las cordenadas Arrancan en (0,0)
30
31     Y ^
32       |
33    Yn +------------+  
34       |            |
35       |            |
36       |            |
37       |            |
38       |            |
39       |            |
40       |            |
41     0 +------------+----->
42       0            Xn    X
43  */
44
45
46 /**
47  * Medidas para cada formato de pagina.
48  */
49 return array (
50         // A4 {{{
51         'a4' => array (
52                 //Portrait {{{ 
53                 'portrait' => array (
54                         //Encabezado {{{
55                         'encabezado' => array ( //Encabezado de cada pagina
56                                 'Xi' => 0,
57                                 'Xf' => 530,
58                                 'Yi' => 657,  
59                                 'Yf' => 700, //Siempre debe representar la altura maxima de la pagina
60                                 'logo' => array (
61                                         'X' => 7,
62                                         'Y' => 665,
63                                         'path' =>
64                                         '/var/www/meconlib/www/images/pdf_logo_portrait.jpg',
65                                     ),
66                                 'linea1' => array (
67                                         'Xi' => 150,
68                                         'Xf' => 150,
69                                         'Yi' => 657,
70                                         'Yf' => 700,
71                                     ),
72                                 'linea2' => array (
73                                         'Xi' => 444,
74                                         'Xf' => 444,
75                                         'Yi' => 657,
76                                         'Yf' => 700,
77                                     ),
78                                 'seccion' => array (
79                                         'Y'      => 685,
80                                         'font'   => 'Helvetica-Bold',
81                                         'height' => 12,
82                                     ),
83                                 'subseccion' => array (
84                                         'Y'      => 664,
85                                         'font'   => 'Helvetica',
86                                         'height' => 12,
87                                     ),
88                                 'paginador' => array (
89                                         'Y'      => 685,
90                                         'font'   => 'Helvetica',
91                                         'height' => 9,
92                                     ),
93                                 'fecha' => array (
94                                         'Y'      => 664,
95                                         'font'   => 'Helvetica',
96                                         'height' => 9,
97                                     ),
98                             ),
99                         //}}}
100                         //Titulos {{{
101                         'titulo' => array (
102                                     'Y'      => 630,
103                                     'font'   => 'Helvetica-Bold',
104                                     'height' => 16,
105                                 ),
106                         'subtitulo' => array (
107                                     'Y'      => 615,
108                                     'font'   => 'Helvetica',
109                                     'height' => 13
110                                 ),
111                         //}}}
112                     ),
113                 //}}}
114                 //LandScape {{{
115                 'landscape' => array (
116                         //Encabezado {{{
117                         'encabezado' => array ( //Encabezado de cada pagina
118                                 'Xi' => 0,
119                                 'Yi' => 487,
120                                 'Xf' => 700,
121                                 'Yf' => 530,
122                                 'logo' => array (
123                                         'X' => 7,
124                                         'Y' => 521,
125                                         'path' =>
126                                         '/var/www/meconlib/www/images/pdf_logo_landscape.jpg',
127                                     ),
128                                 'linea1' => array (
129                                         'Xi' => 150,
130                                         'Xf' => 150,
131                                         'Yi' => 487,
132                                         'Yf' => 530,
133                                     ),
134                                 'linea2' => array (
135                                         'Xi' => 614,
136                                         'Xf' => 614,
137                                         'Yi' => 487,
138                                         'Yf' => 530,
139                                     ),
140                                 'seccion' => array (
141                                         'Y'      => 515,
142                                         'font'   => 'Helvetica-Bold',
143                                         'height' => 12,
144                                     ),
145                                 'subseccion' => array (
146                                         'Y'      => 494,
147                                         'font'   => 'Helvetica',
148                                         'height' => 12,
149                                     ),
150                                 'paginador' => array (
151                                         'Y'      => 515,
152                                         'font'   => 'Helvetica',
153                                         'height' => 9,
154                                     ),
155                                 'fecha' => array (
156                                         'Y'      => 494,
157                                         'font'   => 'Helvetica',
158                                         'height' => 9,
159                                     ),
160                             ),
161                         //}}}
162                         //Titulos {{{
163                         'titulo' => array (
164                                     'Y'      => 460,
165                                     'font'   => 'Helvetica-Bold',
166                                     'height' => 16,
167                                 ),
168                         'subtitulo' => array (
169                                     'Y'      => 445,
170                                     'font'   => 'Helvetica',
171                                     'height' => 13,
172                                 ),
173                         //}}}
174                     ), 
175                 //}}}
176             ),
177         //}}}
178         // OFICIO {{{
179         'legal' => array (
180                 //Portrait {{{ 
181                 'portrait' => array (
182                         //Encabezado {{{
183                         'encabezado' => array ( //Encabezado de cada pagina
184                                 'Xi' => 0,
185                                 'Xf' => 540,
186                                 'Yi' => 821,  
187                                 'Yf' => 864, //Siempre debe representar la altura maxima de la pagina
188                                 'logo' => array (
189                                         'X' => 7,
190                                         'Y' => 829,
191                                         'path' =>
192                                         '/var/www/meconlib/www/images/pdf_logo_portrait.jpg',
193                                     ),
194                                 'linea1' => array (
195                                         'Xi' => 150,
196                                         'Xf' => 150,
197                                         'Yi' => 821,
198                                         'Yf' => 864,
199                                     ),
200                                 'linea2' => array (
201                                         'Xi' => 454,
202                                         'Xf' => 454,
203                                         'Yi' => 821,
204                                         'Yf' => 864,
205                                     ),
206                                 'seccion' => array (
207                                         'Y'      => 849,
208                                         'font'   => 'Helvetica-Bold',
209                                         'height' => 12,
210                                     ),
211                                 'subseccion' => array (
212                                         'Y'      => 828,
213                                         'font'   => 'Helvetica',
214                                         'height' => 12,
215                                     ),
216                                 'paginador' => array (
217                                         'Y'      => 849,
218                                         'font'   => 'Helvetica',
219                                         'height' => 9,
220                                     ),
221                                 'fecha' => array (
222                                         'Y'      => 828,
223                                         'font'   => 'Helvetica',
224                                         'height' => 9,
225                                     ),
226                             ),
227                         //}}}
228                         //Titulos {{{
229                         'titulo' => array (
230                                     'Y'      => 794,
231                                     'font'   => 'Helvetica-Bold',
232                                     'height' => 16,
233                                 ),
234                         'subtitulo' => array (
235                                     'Y'      => 779,
236                                     'font'   => 'Helvetica',
237                                     'height' => 13
238                                 ),
239                         //}}}
240                     ),
241                 //}}}
242                 //LandScape {{{
243                 'landscape' => array (
244                         //Encabezado {{{
245                         'encabezado' => array ( //Encabezado de cada pagina
246                                 'Xi' => 0,
247                                 'Yi' => 497,
248                                 'Xf' => 864,
249                                 'Yf' => 540,
250                                 'logo' => array (
251                                         'X' => 7,
252                                         'Y' => 531,
253                                         'path' =>
254                                         '/var/www/meconlib/www/images/pdf_logo_landscape.jpg',
255                                     ),
256                                 'linea1' => array (
257                                         'Xi' => 150,
258                                         'Xf' => 150,
259                                         'Yi' => 497,
260                                         'Yf' => 540,
261                                     ),
262                                 'linea2' => array (
263                                         'Xi' => 778,
264                                         'Xf' => 778,
265                                         'Yi' => 497,
266                                         'Yf' => 540,
267                                     ),
268                                 'seccion' => array (
269                                         'Y'      => 525,
270                                         'font'   => 'Helvetica-Bold',
271                                         'height' => 12,
272                                     ),
273                                 'subseccion' => array (
274                                         'Y'      => 504,
275                                         'font'   => 'Helvetica',
276                                         'height' => 12,
277                                     ),
278                                 'paginador' => array (
279                                         'Y'      => 525,
280                                         'font'   => 'Helvetica',
281                                         'height' => 9,
282                                     ),
283                                 'fecha' => array (
284                                         'Y'      => 504,
285                                         'font'   => 'Helvetica',
286                                         'height' => 9,
287                                     ),
288                             ),
289                         //}}}
290                         //Titulos {{{
291                         'titulo' => array (
292                                     'Y'      => 470,
293                                     'font'   => 'Helvetica-Bold',
294                                     'height' => 16,
295                                 ),
296                         'subtitulo' => array (
297                                     'Y'      => 455,
298                                     'font'   => 'Helvetica',
299                                     'height' => 13,
300                                 ),
301                         //}}}
302                     ), 
303                 //}}}
304             ),
305         //}}}
306         );
307
308 ?>