Moved check for plugin import/export to the start rather than the end
[moodle-linuxchix.git] / lib / tcpdf / config / tcpdf_config.php
blob34863cef4e4ca8f361f6ecce29b3d8d582722d53
1 <?php
2 //============================================================+
3 // File name : tcpdf_config.php
4 // Begin : 2004-06-11
5 // Last Update : 2006-05-18
6 //
7 // Description : Congiguration file for TCPDF.
8 //
9 // Author: Nicola Asuni
11 // (c) Copyright:
12 // Tecnick.com S.r.l.
13 // Via Ugo Foscolo n.19
14 // 09045 Quartu Sant'Elena (CA)
15 // ITALY
16 // www.tecnick.com
17 // info@tecnick.com
18 //============================================================+
20 /**
21 * Congiguration file for TCPDF.
22 * @author Nicola Asuni
23 * @copyright Copyright &copy; 2004, Tecnick.com S.r.l. - Via Ugo Foscolo
24 * n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com -
25 * info@tecnick.com
26 * @package com.tecnick.tcpdf
27 * @version 1.53.0.TC017
28 * @link http://tcpdf.sourceforge.net
29 * @license http://www.gnu.org/copyleft/lesser.html LGPL
30 * @since 2004-06-11
32 * Moodle-specific changes:
33 * Default values for K_PATH_MAIN and K_PATH_URL are automatically set for
34 * the Moodle installation.
37 // PLEASE SET THE FOLLOWING CONSTANTS:
39 /**
40 * installation path
42 define ('K_PATH_MAIN', $CFG->dirroot.'/lib/tcpdf/');
44 /**
45 * url path
47 define ('K_PATH_URL', $CFG->wwwroot.'/lib/tcpdf/');
49 /**
50 * path for PDF fonts
52 define ("FPDF_FONTPATH", K_PATH_MAIN."fonts/");
54 /**
55 * cache directory for temporary files (full path)
57 define ("K_PATH_CACHE", K_PATH_MAIN."cache/");
59 /**
60 * cache directory for temporary files (url path)
62 define ("K_PATH_URL_CACHE", K_PATH_URL."cache/");
64 /**
65 *images directory
67 define ("K_PATH_IMAGES", K_PATH_MAIN."images/");
69 /**
70 * blank image
72 define ("K_BLANK_IMAGE", K_PATH_IMAGES."_blank.png");
74 /**
75 * page format
77 define ("PDF_PAGE_FORMAT", "A4");
79 /**
80 * page orientation (P=portrait, L=landscape)
82 define ("PDF_PAGE_ORIENTATION", "P");
84 /**
85 * document creator
87 define ("PDF_CREATOR", "pdf creator");
89 /**
90 * document author
92 define ("PDF_AUTHOR", "pdf author");
94 /**
95 * header title
97 define ("PDF_HEADER_TITLE", "header title");
99 /**
100 * header description string
102 define ("PDF_HEADER_STRING", "first row\nsecond row\nthird row");
105 * image logo
107 define ("PDF_HEADER_LOGO", "logo_example.png");
110 * header logo image width [mm]
112 define ("PDF_HEADER_LOGO_WIDTH", 20);
115 * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
117 define ("PDF_UNIT", "mm");
120 * header margin
122 define ("PDF_MARGIN_HEADER", 5);
125 * footer margin
127 define ("PDF_MARGIN_FOOTER", 10);
130 * top margin
132 define ("PDF_MARGIN_TOP", 27);
135 * bottom margin
137 define ("PDF_MARGIN_BOTTOM", 25);
140 * left margin
142 define ("PDF_MARGIN_LEFT", 15);
145 * right margin
147 define ("PDF_MARGIN_RIGHT", 15);
150 * main font name
152 define ("PDF_FONT_NAME_MAIN", "FreeSans"); //vera
155 * main font size
157 define ("PDF_FONT_SIZE_MAIN", 10);
160 * data font name
162 define ("PDF_FONT_NAME_DATA", "FreeSerif"); //verase
165 * data font size
167 define ("PDF_FONT_SIZE_DATA", 8);
170 * scale factor for images (number of points in user unit)
172 define ("PDF_IMAGE_SCALE_RATIO", 4);
175 * magnification factor for titles
177 define("HEAD_MAGNIFICATION", 1.1);
180 * height of cell repect font height
182 define("K_CELL_HEIGHT_RATIO", 1.25);
185 * title magnification respect main font size
187 define("K_TITLE_MAGNIFICATION", 1.3);
190 * reduction factor for small font
192 define("K_SMALL_RATIO", 2/3);
194 //============================================================+
195 // END OF FILE
196 //============================================================+