5 Modification information for LGPL compliance
7 r57813 - 2010-08-19 10:34:44 -0700 (Thu, 19 Aug 2010) - kjing - Author: John Mertic <jmertic@sugarcrm.com>
8 Bug 39085 - When loading the opposite search panel via ajax on the ListViews, call the index action instead of the ListView action to avoid touching pre-MVC code by accident.
10 r56990 - 2010-06-16 13:05:36 -0700 (Wed, 16 Jun 2010) - kjing - snapshot "Mango" svn branch to a new one for GitHub sync
12 r56989 - 2010-06-16 13:01:33 -0700 (Wed, 16 Jun 2010) - kjing - defunt "Mango" svn dev branch before github cutover
14 r55980 - 2010-04-19 13:31:28 -0700 (Mon, 19 Apr 2010) - kjing - create Mango (6.1) based on windex
16 r51719 - 2009-10-22 10:18:00 -0700 (Thu, 22 Oct 2009) - mitani - Converted to Build 3 tags and updated the build system
18 r51634 - 2009-10-19 13:32:22 -0700 (Mon, 19 Oct 2009) - mitani - Windex is the branch for Sugar Sales 1.0 development
20 r50375 - 2009-08-24 18:07:43 -0700 (Mon, 24 Aug 2009) - dwong - branch kobe2 from tokyo r50372
22 r46451 - 2009-04-23 16:57:40 -0700 (Thu, 23 Apr 2009) - jenny - tcpdf initial checkin.
28 //============================================================+
29 // File name : tcpdf_config.php
31 // Last Update : 2009-03-18
33 // Description : Alternative configuration file for TCPDF.
35 // Author: Nicola Asuni
41 // 09044 Quartucciu (CA)
45 //============================================================+
48 * Alternative configuration file for TCPDF.
49 * @author Nicola Asuni
50 * @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
51 * @package com.tecnick.tcpdf
53 * @link http://tcpdf.sourceforge.net
54 * @license http://www.gnu.org/copyleft/lesser.html LGPL
58 // DOCUMENT_ROOT fix for IIS Webserver
59 if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
60 if(isset($_SERVER['SCRIPT_FILENAME'])) {
61 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
62 } elseif(isset($_SERVER['PATH_TRANSLATED'])) {
63 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
65 // define here your DOCUMENT_ROOT path if the previous fails
66 $_SERVER['DOCUMENT_ROOT'] = '/var/www';
70 // Automatic calculation for the following K_PATH_MAIN constant
71 $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
72 if (substr($k_path_main, -1) != '/') {
77 * Installation path (/var/www/tcpdf/).
78 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
80 define ('K_PATH_MAIN', $k_path_main);
82 // Automatic calculation for the following K_PATH_URL constant
83 if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
84 if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
85 $k_path_url = 'https://';
87 $k_path_url = 'http://';
89 $k_path_url .= $_SERVER['HTTP_HOST'];
90 $k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
94 * URL path to tcpdf installation folder (http://localhost/tcpdf/).
95 * By default it is automatically calculated but you can also set it as a fixed string to improve performances..
97 define ('K_PATH_URL', $k_path_url);
101 * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
103 define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
106 * cache directory for temporary files (full path)
108 define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
111 * cache directory for temporary files (url path)
113 define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
118 define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
123 define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
128 define ('PDF_PAGE_FORMAT', 'A4');
131 * page orientation (P=portrait, L=landscape)
133 define ('PDF_PAGE_ORIENTATION', 'P');
138 define ('PDF_CREATOR', 'TCPDF');
143 define ('PDF_AUTHOR', 'TCPDF');
148 define ('PDF_HEADER_TITLE', 'TCPDF Example');
151 * header description string
153 define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
158 define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
161 * header logo image width [mm]
163 define ('PDF_HEADER_LOGO_WIDTH', 30);
166 * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
168 define ('PDF_UNIT', 'mm');
173 define ('PDF_MARGIN_HEADER', 5);
178 define ('PDF_MARGIN_FOOTER', 10);
183 define ('PDF_MARGIN_TOP', 27);
188 define ('PDF_MARGIN_BOTTOM', 25);
193 define ('PDF_MARGIN_LEFT', 15);
198 define ('PDF_MARGIN_RIGHT', 15);
201 * default main font name
203 define ('PDF_FONT_NAME_MAIN', 'helvetica');
206 * default main font size
208 define ('PDF_FONT_SIZE_MAIN', 10);
211 * default data font name
213 define ('PDF_FONT_NAME_DATA', 'helvetica');
216 * default data font size
218 define ('PDF_FONT_SIZE_DATA', 8);
221 * default monospaced font name
223 define ('PDF_FONT_MONOSPACED', 'courier');
226 * Ratio used to scale the images
228 define ('PDF_IMAGE_SCALE_RATIO', 4);
231 * magnification factor for titles
233 define('HEAD_MAGNIFICATION', 1.1);
236 * height of cell repect font height
238 define('K_CELL_HEIGHT_RATIO', 1.25);
241 * title magnification respect main font size
243 define('K_TITLE_MAGNIFICATION', 1.3);
246 * reduction factor for small font
248 define('K_SMALL_RATIO', 2/3);
251 * if true allows to call TCPDF methods using HTML syntax
252 * IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
254 define('K_TCPDF_CALLS_IN_HTML', true);
256 //============================================================+
258 //============================================================+