]> git.llucax.com Git - mecon/meconlib.git/blob - lib/MLIB/PDF/HeaderDefecto/medidas.php
Cambios estéticos, se borra el bit de ejecución en las templates y el ejemplo y
[mecon/meconlib.git] / lib / MLIB / PDF / HeaderDefecto / 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: mar abr 27 12:44:27 ART 2004
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                     ),
101                 //}}}
102                 //LandScape {{{
103                 'landscape' => array (
104                         //Encabezado {{{
105                         'encabezado' => array ( //Encabezado de cada pagina
106                                 'Xi' => 0,
107                                 'Yi' => 487,
108                                 'Xf' => 700,
109                                 'Yf' => 530,
110                                 'logo' => array (
111                                         'X' => 7,
112                                         'Y' => 495,
113                                         'path' =>
114                                         '/var/www/meconlib/www/images/pdf_logo_portrait.jpg',
115                                     ),
116                                 'linea1' => array (
117                                         'Xi' => 150,
118                                         'Xf' => 150,
119                                         'Yi' => 487,
120                                         'Yf' => 530,
121                                     ),
122                                 'linea2' => array (
123                                         'Xi' => 614,
124                                         'Xf' => 614,
125                                         'Yi' => 487,
126                                         'Yf' => 530,
127                                     ),
128                                 'seccion' => array (
129                                         'Y'      => 515,
130                                         'font'   => 'Helvetica-Bold',
131                                         'height' => 12,
132                                     ),
133                                 'subseccion' => array (
134                                         'Y'      => 494,
135                                         'font'   => 'Helvetica',
136                                         'height' => 12,
137                                     ),
138                                 'paginador' => array (
139                                         'Y'      => 515,
140                                         'font'   => 'Helvetica',
141                                         'height' => 9,
142                                     ),
143                                 'fecha' => array (
144                                         'Y'      => 494,
145                                         'font'   => 'Helvetica',
146                                         'height' => 9,
147                                     ),
148                             ),
149                         //}}}
150                     ), 
151                 //}}}
152             ),
153         //}}}
154         // OFICIO {{{
155         'legal' => array (
156                 //Portrait {{{ 
157                 'portrait' => array (
158                         //Encabezado {{{
159                         'encabezado' => array ( //Encabezado de cada pagina
160                                 'Xi' => 0,
161                                 'Xf' => 540,
162                                 'Yi' => 821,  
163                                 'Yf' => 864, //Siempre debe representar la altura maxima de la pagina
164                                 'logo' => array (
165                                         'X' => 7,
166                                         'Y' => 829,
167                                         'path' =>
168                                         '/var/www/meconlib/www/images/pdf_logo_portrait.jpg',
169                                     ),
170                                 'linea1' => array (
171                                         'Xi' => 150,
172                                         'Xf' => 150,
173                                         'Yi' => 821,
174                                         'Yf' => 864,
175                                     ),
176                                 'linea2' => array (
177                                         'Xi' => 454,
178                                         'Xf' => 454,
179                                         'Yi' => 821,
180                                         'Yf' => 864,
181                                     ),
182                                 'seccion' => array (
183                                         'Y'      => 849,
184                                         'font'   => 'Helvetica-Bold',
185                                         'height' => 12,
186                                     ),
187                                 'subseccion' => array (
188                                         'Y'      => 828,
189                                         'font'   => 'Helvetica',
190                                         'height' => 12,
191                                     ),
192                                 'paginador' => array (
193                                         'Y'      => 849,
194                                         'font'   => 'Helvetica',
195                                         'height' => 9,
196                                     ),
197                                 'fecha' => array (
198                                         'Y'      => 828,
199                                         'font'   => 'Helvetica',
200                                         'height' => 9,
201                                     ),
202                             ),
203                         //}}}
204                     ),
205                 //}}}
206                 //LandScape {{{
207                 'landscape' => array (
208                         //Encabezado {{{
209                         'encabezado' => array ( //Encabezado de cada pagina
210                                 'Xi' => 0,
211                                 'Yi' => 497,
212                                 'Xf' => 864,
213                                 'Yf' => 540,
214                                 'logo' => array (
215                                         'X' => 7,
216                                         'Y' => 505,
217                                         'path' =>
218                                         '/var/www/meconlib/www/images/pdf_logo_portrait.jpg',
219                                     ),
220                                 'linea1' => array (
221                                         'Xi' => 150,
222                                         'Xf' => 150,
223                                         'Yi' => 497,
224                                         'Yf' => 540,
225                                     ),
226                                 'linea2' => array (
227                                         'Xi' => 778,
228                                         'Xf' => 778,
229                                         'Yi' => 497,
230                                         'Yf' => 540,
231                                     ),
232                                 'seccion' => array (
233                                         'Y'      => 525,
234                                         'font'   => 'Helvetica-Bold',
235                                         'height' => 12,
236                                     ),
237                                 'subseccion' => array (
238                                         'Y'      => 504,
239                                         'font'   => 'Helvetica',
240                                         'height' => 12,
241                                     ),
242                                 'paginador' => array (
243                                         'Y'      => 525,
244                                         'font'   => 'Helvetica',
245                                         'height' => 9,
246                                     ),
247                                 'fecha' => array (
248                                         'Y'      => 504,
249                                         'font'   => 'Helvetica',
250                                         'height' => 9,
251                                     ),
252                             ),
253                         //}}}
254                     ), 
255                 //}}}
256             ),
257         //}}}
258         );
259
260 ?>