34 if (!defined(
'K_TCPDF_EXTERNAL_CONFIG')) {
37 if ((!isset($_SERVER[
'DOCUMENT_ROOT'])) OR (empty($_SERVER[
'DOCUMENT_ROOT']))) {
38 if(isset($_SERVER[
'SCRIPT_FILENAME'])) {
39 $_SERVER[
'DOCUMENT_ROOT'] = str_replace(
'\\',
'/', substr($_SERVER[
'SCRIPT_FILENAME'], 0, 0-strlen($_SERVER[
'PHP_SELF'])));
40 } elseif(isset($_SERVER[
'PATH_TRANSLATED'])) {
41 $_SERVER[
'DOCUMENT_ROOT'] = str_replace(
'\\',
'/', substr(str_replace(
'\\\\',
'\\', $_SERVER[
'PATH_TRANSLATED']), 0, 0-strlen($_SERVER[
'PHP_SELF'])));
44 $_SERVER[
'DOCUMENT_ROOT'] =
'/var/www';
49 $k_path_main = str_replace(
'\\',
'/', realpath(substr(dirname(__FILE__), 0, 0-strlen(
'config'))));
62 if (isset($_SERVER[
'HTTP_HOST']) AND (!empty($_SERVER[
'HTTP_HOST']))) {
63 if(isset($_SERVER[
'HTTPS']) AND (!empty($_SERVER[
'HTTPS'])) AND strtolower($_SERVER[
'HTTPS'])!=
'off') {
92 define (
'K_PATH_URL_CACHE',
K_PATH_URL.
'cache/');
107 define (
'PDF_PAGE_FORMAT',
'A4');
112 define (
'PDF_PAGE_ORIENTATION',
'P');
117 define (
'PDF_CREATOR',
'TCPDF');
122 define (
'PDF_AUTHOR',
'TCPDF');
127 define (
'PDF_HEADER_TITLE',
'TCPDF Example');
132 define (
'PDF_HEADER_STRING',
"by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
137 define (
'PDF_HEADER_LOGO',
'tcpdf_logo.jpg');
142 define (
'PDF_HEADER_LOGO_WIDTH', 30);
147 define (
'PDF_UNIT',
'mm');
152 define (
'PDF_MARGIN_HEADER', 5);
157 define (
'PDF_MARGIN_FOOTER', 10);
162 define (
'PDF_MARGIN_TOP', 27);
167 define (
'PDF_MARGIN_BOTTOM', 25);
172 define (
'PDF_MARGIN_LEFT', 15);
177 define (
'PDF_MARGIN_RIGHT', 15);
182 define (
'PDF_FONT_NAME_MAIN',
'helvetica');
187 define (
'PDF_FONT_SIZE_MAIN', 10);
192 define (
'PDF_FONT_NAME_DATA',
'helvetica');
197 define (
'PDF_FONT_SIZE_DATA', 8);
202 define (
'PDF_FONT_MONOSPACED',
'courier');
207 define (
'PDF_IMAGE_SCALE_RATIO', 1.25);
212 define(
'HEAD_MAGNIFICATION', 1.1);
217 define(
'K_CELL_HEIGHT_RATIO', 1.25);
222 define(
'K_TITLE_MAGNIFICATION', 1.3);
227 define(
'K_SMALL_RATIO', 2/3);
232 define(
'K_THAI_TOPCHARS',
true);
238 define(
'K_TCPDF_CALLS_IN_HTML',
true);