~adamzammit/quexs/quexscativm

« back to all changes in this revision

Viewing changes to include/limesurvey/admin/classes/tcpdf/config/tcpdf_config.php

  • Committer: azammitdcarf
  • Date: 2008-10-15 04:55:53 UTC
  • Revision ID: svn-v4:fd4a0071-7450-0410-a91b-842f6942ebe7:trunk:6
Import from DCARF SVN

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
//============================================================+
 
3
// File name   : tcpdf_config.php
 
4
// Begin       : 2004-06-11
 
5
// Last Update : 2008-03-04
 
6
//
 
7
// Description : Congiguration file for TCPDF.
 
8
//
 
9
// Author: Nicola Asuni
 
10
//
 
11
// (c) Copyright:
 
12
//               Nicola Asuni
 
13
//               Tecnick.com s.r.l.
 
14
//               Via Della Pace, 11
 
15
//               09044 Quartucciu (CA)
 
16
//               ITALY
 
17
//               www.tecnick.com
 
18
//               info@tecnick.com
 
19
//============================================================+
 
20
 
 
21
/**
 
22
 * Configuration file for TCPDF.
 
23
 * @author Nicola Asuni
 
24
 * @copyright 2004-2008 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
 
25
 * @package com.tecnick.tcpdf
 
26
 * @version 2.1.000
 
27
 * @link http://tcpdf.sourceforge.net
 
28
 * @license http://www.gnu.org/copyleft/lesser.html LGPL
 
29
 * @since 2004-10-27
 
30
 */
 
31
 
 
32
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
 
33
 
 
34
if (!defined("K_TCPDF_EXTERNAL_CONFIG")) {
 
35
        
 
36
        // PLEASE SET THE FOLLOWING CONSTANTS:
 
37
        
 
38
        /**
 
39
         * installation path (/var/www/tcpdf/)
 
40
         */
 
41
        define ("K_PATH_MAIN", "$rootdir/admin/classes/tcpdf/");
 
42
        
 
43
        /**
 
44
         * url path (http://localhost/tcpdf/)
 
45
         */
 
46
        
 
47
        define ("K_PATH_URL", "$homeurl/admin/classes/tcpdf/");
 
48
        
 
49
        /**
 
50
         * path for PDF fonts
 
51
         * use K_PATH_MAIN.fonts/old/ for old non-UTF8 fonts
 
52
         */
 
53
        define ("K_PATH_FONTS", K_PATH_MAIN."fonts/");
 
54
        
 
55
        /**
 
56
         * cache directory for temporary files (full path)
 
57
         */
 
58
        define ("K_PATH_CACHE", K_PATH_MAIN."cache/");
 
59
        
 
60
        /**
 
61
         * cache directory for temporary files (url path)
 
62
         */
 
63
        define ("K_PATH_URL_CACHE", K_PATH_URL."cache/");
 
64
        
 
65
        /**
 
66
         *images directory
 
67
         */
 
68
        define ("K_PATH_IMAGES", K_PATH_MAIN."images/");
 
69
        
 
70
        /**
 
71
         * blank image
 
72
         */
 
73
        define ("K_BLANK_IMAGE", K_PATH_IMAGES."_blank.png");
 
74
        
 
75
        /**
 
76
         * page format
 
77
         */
 
78
        define ("PDF_PAGE_FORMAT", "A4");
 
79
        
 
80
        /**
 
81
         * page orientation (P=portrait, L=landscape)
 
82
         */
 
83
        define ("PDF_PAGE_ORIENTATION", "P");
 
84
        
 
85
        /**
 
86
         * document creator
 
87
         */
 
88
        define ("PDF_CREATOR", "TCPDF");
 
89
        
 
90
        /**
 
91
         * document author
 
92
         */
 
93
        define ("PDF_AUTHOR", "TCPDF");
 
94
        
 
95
        /**
 
96
         * header title
 
97
         */
 
98
        define ("PDF_HEADER_TITLE", "TCPDF Example");
 
99
        
 
100
        /**
 
101
         * header description string
 
102
         */
 
103
        define ("PDF_HEADER_STRING", "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
 
104
        
 
105
        /**
 
106
         * image logo
 
107
         */
 
108
        define ("PDF_HEADER_LOGO", "tcpdf_logo.jpg");
 
109
        
 
110
        /**
 
111
         * header logo image width [mm]
 
112
         */
 
113
        define ("PDF_HEADER_LOGO_WIDTH", 30);
 
114
        
 
115
        /**
 
116
         *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
 
117
         */
 
118
        define ("PDF_UNIT", "mm");
 
119
        
 
120
        /**
 
121
         * header margin
 
122
         */
 
123
        define ("PDF_MARGIN_HEADER", 5);
 
124
        
 
125
        /**
 
126
         * footer margin
 
127
         */
 
128
        define ("PDF_MARGIN_FOOTER", 10);
 
129
        
 
130
        /**
 
131
         * top margin
 
132
         */
 
133
        define ("PDF_MARGIN_TOP", 27);
 
134
        
 
135
        /**
 
136
         * bottom margin
 
137
         */
 
138
        define ("PDF_MARGIN_BOTTOM", 25);
 
139
        
 
140
        /**
 
141
         * left margin
 
142
         */
 
143
        define ("PDF_MARGIN_LEFT", 15);
 
144
        
 
145
        /**
 
146
         * right margin
 
147
         */
 
148
        define ("PDF_MARGIN_RIGHT", 15);
 
149
        
 
150
        /**
 
151
         * main font name
 
152
         */
 
153
        define ("PDF_FONT_NAME_MAIN", "vera"); //vera
 
154
        
 
155
        /**
 
156
         * main font size
 
157
         */
 
158
        define ("PDF_FONT_SIZE_MAIN", 10);
 
159
        
 
160
        /**
 
161
         * data font name
 
162
         */
 
163
        define ("PDF_FONT_NAME_DATA", "vera"); //vera
 
164
        
 
165
        /**
 
166
         * data font size
 
167
         */
 
168
        define ("PDF_FONT_SIZE_DATA", 8);
 
169
        
 
170
        /**
 
171
         *  scale factor for images (number of points in user unit)
 
172
         */
 
173
        define ("PDF_IMAGE_SCALE_RATIO", 4);
 
174
        
 
175
        /**
 
176
         * magnification factor for titles
 
177
         */
 
178
        define("HEAD_MAGNIFICATION", 1.1);
 
179
        
 
180
        /**
 
181
         * height of cell repect font height
 
182
         */
 
183
        define("K_CELL_HEIGHT_RATIO", 1.25);
 
184
        
 
185
        /**
 
186
         * title magnification respect main font size
 
187
         */
 
188
        define("K_TITLE_MAGNIFICATION", 1.3);
 
189
        
 
190
        /**
 
191
         * reduction factor for small font
 
192
         */
 
193
        define("K_SMALL_RATIO", 2/3);
 
194
}
 
195
 
 
196
//============================================================+
 
197
// END OF FILE                                                 
 
198
//============================================================+
 
199
?>