2 //============================================================+
3 // File name : tcpdf_config.php
5 // Last Update : 2006-05-18
7 // Description : Congiguration file for TCPDF.
9 // Author: Nicola Asuni
13 // Via Ugo Foscolo n.19
14 // 09045 Quartu Sant'Elena (CA)
18 //============================================================+
21 * Congiguration file for TCPDF.
22 * @author Nicola Asuni
23 * @copyright Copyright © 2004, Tecnick.com S.r.l. - Via Ugo Foscolo
24 * n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.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
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:
42 define ('K_PATH_MAIN', $CFG->dirroot
.'/lib/tcpdf/');
47 define ('K_PATH_URL', $CFG->wwwroot
.'/lib/tcpdf/');
52 define ("FPDF_FONTPATH", K_PATH_MAIN
."fonts/");
55 * cache directory for temporary files (full path)
57 define ("K_PATH_CACHE", K_PATH_MAIN
."cache/");
60 * cache directory for temporary files (url path)
62 define ("K_PATH_URL_CACHE", K_PATH_URL
."cache/");
67 define ("K_PATH_IMAGES", K_PATH_MAIN
."images/");
72 define ("K_BLANK_IMAGE", K_PATH_IMAGES
."_blank.png");
77 define ("PDF_PAGE_FORMAT", "A4");
80 * page orientation (P=portrait, L=landscape)
82 define ("PDF_PAGE_ORIENTATION", "P");
87 define ("PDF_CREATOR", "pdf creator");
92 define ("PDF_AUTHOR", "pdf author");
97 define ("PDF_HEADER_TITLE", "header title");
100 * header description string
102 define ("PDF_HEADER_STRING", "first row\nsecond row\nthird row");
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");
122 define ("PDF_MARGIN_HEADER", 5);
127 define ("PDF_MARGIN_FOOTER", 10);
132 define ("PDF_MARGIN_TOP", 27);
137 define ("PDF_MARGIN_BOTTOM", 25);
142 define ("PDF_MARGIN_LEFT", 15);
147 define ("PDF_MARGIN_RIGHT", 15);
152 define ("PDF_FONT_NAME_MAIN", "FreeSans"); //vera
157 define ("PDF_FONT_SIZE_MAIN", 10);
162 define ("PDF_FONT_NAME_DATA", "FreeSerif"); //verase
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 //============================================================+
196 //============================================================+