tcpdf_config.php
199 lines
| 1 | <?php |
| 2 | |
| 3 | namespace { |
| 4 | //============================================================+ |
| 5 | // File name : tcpdf_config.php |
| 6 | // Begin : 2004-06-11 |
| 7 | // Last Update : 2014-12-11 |
| 8 | // |
| 9 | // Description : Configuration file for TCPDF. |
| 10 | // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com |
| 11 | // License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html) |
| 12 | // ------------------------------------------------------------------- |
| 13 | // Copyright (C) 2004-2014 2026 Nicola Asuni - Tecnick.com LTD |
| 14 | // |
| 15 | // This file is part of TCPDF software library. |
| 16 | // |
| 17 | // TCPDF is free software: you can redistribute it and/or modify it |
| 18 | // under the terms of the GNU Lesser General Public License as |
| 19 | // published by the Free Software Foundation, either version 3 of the |
| 20 | // License, or (at your option) any later version. |
| 21 | // |
| 22 | // TCPDF is distributed in the hope that it will be useful, but |
| 23 | // WITHOUT ANY WARRANTY; without even the implied warranty of |
| 24 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 25 | // See the GNU Lesser General Public License for more details. |
| 26 | // |
| 27 | // You should have received a copy of the GNU Lesser General Public License |
| 28 | // along with TCPDF. If not, see <https://www.gnu.org/licenses/>. |
| 29 | // |
| 30 | // See LICENSE.TXT file for more information. |
| 31 | //============================================================+ |
| 32 | /** |
| 33 | * Configuration file for TCPDF. |
| 34 | * @author Nicola Asuni |
| 35 | * @package com.tecnick.tcpdf |
| 36 | * @version 4.9.005 |
| 37 | * @since 2004-10-27 |
| 38 | */ |
| 39 | // IMPORTANT: |
| 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. |
| 42 | /** |
| 43 | * Installation path (/var/www/tcpdf/). |
| 44 | * By default it is automatically calculated but you can also set it as a fixed string to improve performances. |
| 45 | */ |
| 46 | //define ('K_PATH_MAIN', ''); |
| 47 | /** |
| 48 | * URL path to tcpdf installation folder (http://localhost/tcpdf/). |
| 49 | * By default it is automatically set but you can also set it as a fixed string to improve performances. |
| 50 | */ |
| 51 | //define ('K_PATH_URL', ''); |
| 52 | /** |
| 53 | * Path for PDF fonts. |
| 54 | * By default it is automatically set but you can also set it as a fixed string to improve performances. |
| 55 | */ |
| 56 | //define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); |
| 57 | /** |
| 58 | * Default images directory. |
| 59 | * By default it is automatically set but you can also set it as a fixed string to improve performances. |
| 60 | */ |
| 61 | //define ('K_PATH_IMAGES', ''); |
| 62 | /** |
| 63 | * Deafult image logo used be the default Header() method. |
| 64 | * Please set here your own logo or an empty string to disable it. |
| 65 | */ |
| 66 | //define ('PDF_HEADER_LOGO', ''); |
| 67 | /** |
| 68 | * Header logo image width in user units. |
| 69 | */ |
| 70 | //define ('PDF_HEADER_LOGO_WIDTH', 0); |
| 71 | /** |
| 72 | * Cache directory for temporary files (full path). |
| 73 | */ |
| 74 | //define ('K_PATH_CACHE', '/tmp/'); |
| 75 | /** |
| 76 | * Generic name for a blank image. |
| 77 | */ |
| 78 | \define('K_BLANK_IMAGE', '_blank.png'); |
| 79 | /** |
| 80 | * Page format. |
| 81 | */ |
| 82 | \define('PDF_PAGE_FORMAT', 'A4'); |
| 83 | /** |
| 84 | * Page orientation (P=portrait, L=landscape). |
| 85 | */ |
| 86 | \define('PDF_PAGE_ORIENTATION', 'P'); |
| 87 | /** |
| 88 | * Document creator. |
| 89 | */ |
| 90 | \define('PDF_CREATOR', 'TCPDF'); |
| 91 | /** |
| 92 | * Document author. |
| 93 | */ |
| 94 | \define('PDF_AUTHOR', 'TCPDF'); |
| 95 | /** |
| 96 | * Header title. |
| 97 | */ |
| 98 | \define('PDF_HEADER_TITLE', 'TCPDF Example'); |
| 99 | /** |
| 100 | * Header description string. |
| 101 | */ |
| 102 | \define('PDF_HEADER_STRING', "by2026 Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); |
| 103 | /** |
| 104 | * Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]. |
| 105 | */ |
| 106 | \define('PDF_UNIT', 'mm'); |
| 107 | /** |
| 108 | * Header margin. |
| 109 | */ |
| 110 | \define('PDF_MARGIN_HEADER', 5); |
| 111 | /** |
| 112 | * Footer margin. |
| 113 | */ |
| 114 | \define('PDF_MARGIN_FOOTER', 10); |
| 115 | /** |
| 116 | * Top margin. |
| 117 | */ |
| 118 | \define('PDF_MARGIN_TOP', 27); |
| 119 | /** |
| 120 | * Bottom margin. |
| 121 | */ |
| 122 | \define('PDF_MARGIN_BOTTOM', 25); |
| 123 | /** |
| 124 | * Left margin. |
| 125 | */ |
| 126 | \define('PDF_MARGIN_LEFT', 15); |
| 127 | /** |
| 128 | * Right margin. |
| 129 | */ |
| 130 | \define('PDF_MARGIN_RIGHT', 15); |
| 131 | /** |
| 132 | * Default main font name. |
| 133 | */ |
| 134 | \define('PDF_FONT_NAME_MAIN', 'helvetica'); |
| 135 | /** |
| 136 | * Default main font size. |
| 137 | */ |
| 138 | \define('PDF_FONT_SIZE_MAIN', 10); |
| 139 | /** |
| 140 | * Default data font name. |
| 141 | */ |
| 142 | \define('PDF_FONT_NAME_DATA', 'helvetica'); |
| 143 | /** |
| 144 | * Default data font size. |
| 145 | */ |
| 146 | \define('PDF_FONT_SIZE_DATA', 8); |
| 147 | /** |
| 148 | * Default monospaced font name. |
| 149 | */ |
| 150 | \define('PDF_FONT_MONOSPACED', 'courier'); |
| 151 | /** |
| 152 | * Ratio used to adjust the conversion of pixels to user units. |
| 153 | */ |
| 154 | \define('PDF_IMAGE_SCALE_RATIO', 1.25); |
| 155 | /** |
| 156 | * Magnification factor for titles. |
| 157 | */ |
| 158 | \define('HEAD_MAGNIFICATION', 1.1); |
| 159 | /** |
| 160 | * Height of cell respect font height. |
| 161 | */ |
| 162 | \define('K_CELL_HEIGHT_RATIO', 1.25); |
| 163 | /** |
| 164 | * Title magnification respect main font size. |
| 165 | */ |
| 166 | \define('K_TITLE_MAGNIFICATION', 1.3); |
| 167 | /** |
| 168 | * Reduction factor for small font. |
| 169 | */ |
| 170 | \define('K_SMALL_RATIO', 2 / 3); |
| 171 | /** |
| 172 | * Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language. |
| 173 | */ |
| 174 | \define('K_THAI_TOPCHARS', \true); |
| 175 | /** |
| 176 | * If true allows to call TCPDF methods using HTML syntax |
| 177 | * IMPORTANT: For security reason, disable this feature if you are printing user HTML content. |
| 178 | */ |
| 179 | \define('K_TCPDF_CALLS_IN_HTML', \false); |
| 180 | /** |
| 181 | * List of TCPDF methods that are allowed to be called using HTML syntax. |
| 182 | * Note: each method name must end with surrounded with | (pipe) character. |
| 183 | * The constant K_TCPDF_CALLS_IN_HTML must be set to true. |
| 184 | * IMPORTANT: For security reason, disable this feature if you are allowing user HTML content. |
| 185 | */ |
| 186 | \define('K_ALLOWED_TCPDF_TAGS', ''); |
| 187 | /** |
| 188 | * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. |
| 189 | */ |
| 190 | \define('K_TCPDF_THROW_EXCEPTION_ERROR', \false); |
| 191 | /** |
| 192 | * Default timezone for datetime functions |
| 193 | */ |
| 194 | \define('K_TIMEZONE', 'UTC'); |
| 195 | //============================================================+ |
| 196 | // END OF FILE |
| 197 | //============================================================+ |
| 198 | } |
| 199 |