]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/3rdparty/libraries/tcpdf/config/tcpdf_config.php
2 //============================================================+
3 // File name : tcpdf_config.php
5 // Last Update : 2014-09-02
7 // Description : Configuration file for TCPDF.
8 // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
9 // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
10 // -------------------------------------------------------------------
11 // Copyright (C) 2004-2014 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 //============================================================+
32 * Configuration file for TCPDF.
33 * @author Nicola Asuni
34 * @package com.tecnick.tcpdf
40 // If you define the constant K_TCPDF_EXTERNAL_CONFIG, all the following settings will be ignored.
41 // If you use the tcpdf_autoconfig.php, then you can overwrite some values here.
45 * Installation path (/var/www/tcpdf/).
46 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
48 //define ('K_PATH_MAIN', '');
51 * URL path to tcpdf installation folder (http://localhost/tcpdf/).
52 * By default it is automatically set but you can also set it as a fixed string to improve performances.
54 //define ('K_PATH_URL', '');
58 * By default it is automatically set but you can also set it as a fixed string to improve performances.
60 //define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
63 * Default images directory.
64 * By default it is automatically set but you can also set it as a fixed string to improve performances.
66 //define ('K_PATH_IMAGES', '');
69 * Deafult image logo used be the default Header() method.
70 * Please set here your own logo or an empty string to disable it.
72 //define ('PDF_HEADER_LOGO', '');
75 * Header logo image width in user units.
77 //define ('PDF_HEADER_LOGO_WIDTH', 0);
80 * Cache directory for temporary files (full path).
82 //define ('K_PATH_CACHE', '/tmp/');
85 * Generic name for a blank image.
87 define ('K_BLANK_IMAGE', '_blank.png');
92 define ('PDF_PAGE_FORMAT', 'A4');
95 * Page orientation (P=portrait, L=landscape).
97 define ('PDF_PAGE_ORIENTATION', 'P');
102 define ('PDF_CREATOR', 'TCPDF');
107 define ('PDF_AUTHOR', 'TCPDF');
112 define ('PDF_HEADER_TITLE', 'TCPDF Example');
115 * Header description string.
117 define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
120 * Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
122 define ('PDF_UNIT', 'mm');
127 define ('PDF_MARGIN_HEADER', 5);
132 define ('PDF_MARGIN_FOOTER', 10);
137 define ('PDF_MARGIN_TOP', 27);
142 define ('PDF_MARGIN_BOTTOM', 25);
147 define ('PDF_MARGIN_LEFT', 15);
152 define ('PDF_MARGIN_RIGHT', 15);
155 * Default main font name.
157 define ('PDF_FONT_NAME_MAIN', 'helvetica');
160 * Default main font size.
162 define ('PDF_FONT_SIZE_MAIN', 10);
165 * Default data font name.
167 define ('PDF_FONT_NAME_DATA', 'helvetica');
170 * Default data font size.
172 define ('PDF_FONT_SIZE_DATA', 8);
175 * Default monospaced font name.
177 define ('PDF_FONT_MONOSPACED', 'courier');
180 * Ratio used to adjust the conversion of pixels to user units.
182 define ('PDF_IMAGE_SCALE_RATIO', 1.25);
185 * Magnification factor for titles.
187 define('HEAD_MAGNIFICATION', 1.1);
190 * Height of cell respect font height.
192 define('K_CELL_HEIGHT_RATIO', 1.25);
195 * Title magnification respect main font size.
197 define('K_TITLE_MAGNIFICATION', 1.3);
200 * Reduction factor for small font.
202 define('K_SMALL_RATIO', 2/3);
205 * Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
207 define('K_THAI_TOPCHARS', true);
210 * If true allows to call TCPDF methods using HTML syntax
211 * IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
213 define('K_TCPDF_CALLS_IN_HTML', true);
216 * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
218 define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
221 * Default timezone for datetime functions
223 define('K_TIMEZONE', 'UTC');
225 //============================================================+
227 //============================================================+