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