Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / libraries / tcpdf / config / tcpdf_config.php
blobf5c0a182bbfda193ab80c6eb0ebb0b74f44f8690
1 <?php
2 //============================================================+
3 // File name : tcpdf_config.php
4 // Begin : 2004-06-11
5 // Last Update : 2013-02-06
6 //
7 // Description : Configuration file for TCPDF.
8 // Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
9 // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
10 // -------------------------------------------------------------------
11 // Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD
13 // This file is part of TCPDF software library.
15 // TCPDF is free software: you can redistribute it and/or modify it
16 // under the terms of the GNU Lesser General Public License as
17 // published by the Free Software Foundation, either version 3 of the
18 // License, or (at your option) any later version.
20 // TCPDF is distributed in the hope that it will be useful, but
21 // WITHOUT ANY WARRANTY; without even the implied warranty of
22 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 // See the GNU Lesser General Public License for more details.
25 // You should have received a copy of the GNU Lesser General Public License
26 // along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
28 // See LICENSE.TXT file for more information.
29 //============================================================+
31 /**
32 * Configuration file for TCPDF.
33 * @author Nicola Asuni
34 * @package com.tecnick.tcpdf
35 * @version 4.9.005
36 * @since 2004-10-27
39 // If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
41 if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
43 // DOCUMENT_ROOT fix for IIS Webserver
44 if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
45 if(isset($_SERVER['SCRIPT_FILENAME'])) {
46 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
47 } elseif(isset($_SERVER['PATH_TRANSLATED'])) {
48 $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
49 } else {
50 // define here your DOCUMENT_ROOT path if the previous fails (e.g. '/var/www')
51 $_SERVER['DOCUMENT_ROOT'] = '/';
55 // be sure that the end slash is present
56 $_SERVER['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/');
58 // Automatic calculation for the following K_PATH_MAIN constant
59 $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
60 if (substr($k_path_main, -1) != '/') {
61 $k_path_main .= '/';
64 /**
65 * Installation path (/var/www/tcpdf/).
66 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
68 define ('K_PATH_MAIN', $k_path_main);
70 // Automatic calculation for the following K_PATH_URL constant
71 $k_path_url = $k_path_main; // default value for console mode
72 if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
73 if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
74 $k_path_url = 'https://';
75 } else {
76 $k_path_url = 'http://';
78 $k_path_url .= $_SERVER['HTTP_HOST'];
79 $k_path_url .= str_replace( '\\', '/', substr(K_PATH_MAIN, (strlen($_SERVER['DOCUMENT_ROOT']) - 1)));
82 /**
83 * URL path to tcpdf installation folder (http://localhost/tcpdf/).
84 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
86 define ('K_PATH_URL', $k_path_url);
88 /**
89 * path for PDF fonts
90 * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
92 define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
94 /**
95 * cache directory for temporary files (full path)
97 define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
99 /**
100 * cache directory for temporary files (url path)
102 define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
105 *images directory
107 define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
110 * blank image
112 define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
115 * page format
117 define ('PDF_PAGE_FORMAT', 'A4');
120 * page orientation (P=portrait, L=landscape)
122 define ('PDF_PAGE_ORIENTATION', 'P');
125 * document creator
127 define ('PDF_CREATOR', 'TCPDF');
130 * document author
132 define ('PDF_AUTHOR', 'TCPDF');
135 * header title
137 define ('PDF_HEADER_TITLE', 'TCPDF Example');
140 * header description string
142 define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
145 * image logo
147 define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
150 * header logo image width [mm]
152 define ('PDF_HEADER_LOGO_WIDTH', 30);
155 * document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
157 define ('PDF_UNIT', 'mm');
160 * header margin
162 define ('PDF_MARGIN_HEADER', 5);
165 * footer margin
167 define ('PDF_MARGIN_FOOTER', 10);
170 * top margin
172 define ('PDF_MARGIN_TOP', 27);
175 * bottom margin
177 define ('PDF_MARGIN_BOTTOM', 25);
180 * left margin
182 define ('PDF_MARGIN_LEFT', 15);
185 * right margin
187 define ('PDF_MARGIN_RIGHT', 15);
190 * default main font name
192 define ('PDF_FONT_NAME_MAIN', 'helvetica');
195 * default main font size
197 define ('PDF_FONT_SIZE_MAIN', 10);
200 * default data font name
202 define ('PDF_FONT_NAME_DATA', 'helvetica');
205 * default data font size
207 define ('PDF_FONT_SIZE_DATA', 8);
210 * default monospaced font name
212 define ('PDF_FONT_MONOSPACED', 'courier');
215 * ratio used to adjust the conversion of pixels to user units
217 define ('PDF_IMAGE_SCALE_RATIO', 1.25);
220 * magnification factor for titles
222 define('HEAD_MAGNIFICATION', 1.1);
225 * height of cell respect font height
227 define('K_CELL_HEIGHT_RATIO', 1.25);
230 * title magnification respect main font size
232 define('K_TITLE_MAGNIFICATION', 1.3);
235 * reduction factor for small font
237 define('K_SMALL_RATIO', 2/3);
240 * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
242 define('K_THAI_TOPCHARS', true);
245 * if true allows to call TCPDF methods using HTML syntax
246 * IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
248 define('K_TCPDF_CALLS_IN_HTML', true);
251 * if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
253 define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
256 //============================================================+
257 // END OF FILE
258 //============================================================+