]> git.llucax.com Git - mecon/meconlib.git/blob - lib/MLIB/PDF/HeaderDefecto/medidas.php
Se agrega un objeto que permite armar tablas html a partir de templates.
[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                                     mlib
4 -------------------------------------------------------------------------------
5 This file is part of mlib.
6
7 mlib is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your option)
10 any later version.
11
12 mlib is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15  
16 You should have received a copy of the GNU General Public License; if not,
17 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18 Boston, MA  02111-1307  USA
19 -------------------------------------------------------------------------------
20 Creado: mar abr 27 12:44:27 ART 2004
21 Autor:  Martin Marrese <mmarre@mecon.gov.ar>
22 -------------------------------------------------------------------------------
23 $Id$
24 -----------------------------------------------------------------------------*/
25
26 /**
27  * Este archivo contiene las coordenadas y estilos de los diferentes componentes
28  * de MLIB_PDF_Marco. Las cordenadas Arrancan en (0,0)
29
30     Y ^
31       |
32    Yn +------------+  
33       |            |
34       |            |
35       |            |
36       |            |
37       |            |
38       |            |
39       |            |
40     0 +------------+----->
41       0            Xn    X
42  */
43
44
45 /**
46  * Medidas para cada formato de pagina.
47  */
48 return array (
49         // A4 {{{
50         'a4' => array (
51                 //Portrait {{{ 
52                 'portrait' => array (
53                         //Encabezado {{{
54                         'encabezado' => array ( //Encabezado de cada pagina
55                                 'Xi' => 0,
56                                 'Xf' => 530,
57                                 'Yi' => 657,  
58                                 'Yf' => 700, //Siempre debe representar la altura maxima de la pagina
59                                 'logo' => array (
60                                         'X' => 7,
61                                         'Y' => 665,
62                                         'path' =>
63                                         '/var/www/mlib/www/images/pdf_logo_portrait.jpg',
64                                     ),
65                                 'linea1' => array (
66                                         'Xi' => 150,
67                                         'Xf' => 150,
68                                         'Yi' => 657,
69                                         'Yf' => 700,
70                                     ),
71                                 'linea2' => array (
72                                         'Xi' => 444,
73                                         'Xf' => 444,
74                                         'Yi' => 657,
75                                         'Yf' => 700,
76                                     ),
77                                 'seccion' => array (
78                                         'Y'      => 685,
79                                         'font'   => 'Helvetica-Bold',
80                                         'height' => 12,
81                                     ),
82                                 'subseccion' => array (
83                                         'Y'      => 664,
84                                         'font'   => 'Helvetica',
85                                         'height' => 12,
86                                     ),
87                                 'paginador' => array (
88                                         'Y'      => 685,
89                                         'font'   => 'Helvetica',
90                                         'height' => 9,
91                                     ),
92                                 'fecha' => array (
93                                         'Y'      => 664,
94                                         'font'   => 'Helvetica',
95                                         'height' => 9,
96                                     ),
97                             ),
98                         //}}}
99                     ),
100                 //}}}
101                 //LandScape {{{
102                 'landscape' => array (
103                         //Encabezado {{{
104                         'encabezado' => array ( //Encabezado de cada pagina
105                                 'Xi' => 0,
106                                 'Yi' => 487,
107                                 'Xf' => 700,
108                                 'Yf' => 530,
109                                 'logo' => array (
110                                         'X' => 7,
111                                         'Y' => 495,
112                                         'path' =>
113                                         '/var/www/mlib/www/images/pdf_logo_portrait.jpg',
114                                     ),
115                                 'linea1' => array (
116                                         'Xi' => 150,
117                                         'Xf' => 150,
118                                         'Yi' => 487,
119                                         'Yf' => 530,
120                                     ),
121                                 'linea2' => array (
122                                         'Xi' => 614,
123                                         'Xf' => 614,
124                                         'Yi' => 487,
125                                         'Yf' => 530,
126                                     ),
127                                 'seccion' => array (
128                                         'Y'      => 515,
129                                         'font'   => 'Helvetica-Bold',
130                                         'height' => 12,
131                                     ),
132                                 'subseccion' => array (
133                                         'Y'      => 494,
134                                         'font'   => 'Helvetica',
135                                         'height' => 12,
136                                     ),
137                                 'paginador' => array (
138                                         'Y'      => 515,
139                                         'font'   => 'Helvetica',
140                                         'height' => 9,
141                                     ),
142                                 'fecha' => array (
143                                         'Y'      => 494,
144                                         'font'   => 'Helvetica',
145                                         'height' => 9,
146                                     ),
147                             ),
148                         //}}}
149                     ), 
150                 //}}}
151             ),
152         //}}}
153         // OFICIO {{{
154         'legal' => array (
155                 //Portrait {{{ 
156                 'portrait' => array (
157                         //Encabezado {{{
158                         'encabezado' => array ( //Encabezado de cada pagina
159                                 'Xi' => 0,
160                                 'Xf' => 540,
161                                 'Yi' => 821,  
162                                 'Yf' => 864, //Siempre debe representar la altura maxima de la pagina
163                                 'logo' => array (
164                                         'X' => 7,
165                                         'Y' => 829,
166                                         'path' =>
167                                         '/var/www/mlib/www/images/pdf_logo_portrait.jpg',
168                                     ),
169                                 'linea1' => array (
170                                         'Xi' => 150,
171                                         'Xf' => 150,
172                                         'Yi' => 821,
173                                         'Yf' => 864,
174                                     ),
175                                 'linea2' => array (
176                                         'Xi' => 454,
177                                         'Xf' => 454,
178                                         'Yi' => 821,
179                                         'Yf' => 864,
180                                     ),
181                                 'seccion' => array (
182                                         'Y'      => 849,
183                                         'font'   => 'Helvetica-Bold',
184                                         'height' => 12,
185                                     ),
186                                 'subseccion' => array (
187                                         'Y'      => 828,
188                                         'font'   => 'Helvetica',
189                                         'height' => 12,
190                                     ),
191                                 'paginador' => array (
192                                         'Y'      => 849,
193                                         'font'   => 'Helvetica',
194                                         'height' => 9,
195                                     ),
196                                 'fecha' => array (
197                                         'Y'      => 828,
198                                         'font'   => 'Helvetica',
199                                         'height' => 9,
200                                     ),
201                             ),
202                         //}}}
203                     ),
204                 //}}}
205                 //LandScape {{{
206                 'landscape' => array (
207                         //Encabezado {{{
208                         'encabezado' => array ( //Encabezado de cada pagina
209                                 'Xi' => 0,
210                                 'Yi' => 497,
211                                 'Xf' => 864,
212                                 'Yf' => 540,
213                                 'logo' => array (
214                                         'X' => 7,
215                                         'Y' => 505,
216                                         'path' =>
217                                         '/var/www/mlib/www/images/pdf_logo_portrait.jpg',
218                                     ),
219                                 'linea1' => array (
220                                         'Xi' => 150,
221                                         'Xf' => 150,
222                                         'Yi' => 497,
223                                         'Yf' => 540,
224                                     ),
225                                 'linea2' => array (
226                                         'Xi' => 778,
227                                         'Xf' => 778,
228                                         'Yi' => 497,
229                                         'Yf' => 540,
230                                     ),
231                                 'seccion' => array (
232                                         'Y'      => 525,
233                                         'font'   => 'Helvetica-Bold',
234                                         'height' => 12,
235                                     ),
236                                 'subseccion' => array (
237                                         'Y'      => 504,
238                                         'font'   => 'Helvetica',
239                                         'height' => 12,
240                                     ),
241                                 'paginador' => array (
242                                         'Y'      => 525,
243                                         'font'   => 'Helvetica',
244                                         'height' => 9,
245                                     ),
246                                 'fecha' => array (
247                                         'Y'      => 504,
248                                         'font'   => 'Helvetica',
249                                         'height' => 9,
250                                     ),
251                             ),
252                         //}}}
253                     ), 
254                 //}}}
255             ),
256         //}}}
257         );
258
259 ?>