Source for file tcpdf_config_alt.php
Documentation is available at tcpdf_config_alt.php 
//============================================================+  
// File name   : tcpdf_config.php  
// Last Update : 2010-08-19  
// Description : Alternative configuration file for TCPDF.  
//============================================================+  
 * Alternative configuration file for TCPDF.  
 * @copyright 2004-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com  
 * @package com.tecnick.tcpdf  
 * @link http://tcpdf.sourceforge.net  
 * @license http://www.gnu.org/copyleft/lesser.html LGPL  
// DOCUMENT_ROOT fix for IIS Webserver  
if ((!isset ($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {  
    if(isset ($_SERVER['SCRIPT_FILENAME'])) {  
        $_SERVER['DOCUMENT_ROOT'] =  str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0- strlen($_SERVER['PHP_SELF'])));  
    } elseif(isset ($_SERVER['PATH_TRANSLATED'])) {  
        // define here your DOCUMENT_ROOT path if the previous fails  
        $_SERVER['DOCUMENT_ROOT'] =  '/var/www';  
// Automatic calculation for the following K_PATH_MAIN constant  
if (substr($k_path_main, - 1) !=  '/') {  
 * Installation path (/var/www/tcpdf/).  
 * By default it is automatically calculated but you can also set it as a fixed string to improve performances.  
define ('K_PATH_MAIN', $k_path_main);  
// Automatic calculation for the following K_PATH_URL constant  
if (isset ($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {  
    if(isset ($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!= 'off') {  
        $k_path_url =  'https://';  
    $k_path_url .=  $_SERVER['HTTP_HOST'];  
 * URL path to tcpdf installation folder (http://localhost/tcpdf/).  
 * By default it is automatically calculated but you can also set it as a fixed string to improve performances..  
define ('K_PATH_URL', $k_path_url);  
 * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts  
define ('K_PATH_FONTS', K_PATH_MAIN. 'fonts/');  
 * cache directory for temporary files (full path)  
define ('K_PATH_CACHE', K_PATH_MAIN. 'cache/');  
 * cache directory for temporary files (url path)  
define ('K_PATH_URL_CACHE', K_PATH_URL. 'cache/');  
define ('K_PATH_IMAGES', K_PATH_MAIN. 'images/');  
define ('K_BLANK_IMAGE', K_PATH_IMAGES. '_blank.png');  
define ('PDF_PAGE_FORMAT', 'A4');  
 * page orientation (P=portrait, L=landscape)  
define ('PDF_PAGE_ORIENTATION', 'P');  
define ('PDF_CREATOR', 'TCPDF');  
define ('PDF_AUTHOR', 'TCPDF');  
define ('PDF_HEADER_TITLE', 'TCPDF Example');  
 * header description string  
define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");  
define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');  
 * header logo image width [mm]  
define ('PDF_HEADER_LOGO_WIDTH', 30);  
 *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]  
define ('PDF_MARGIN_HEADER', 5);  
define ('PDF_MARGIN_FOOTER', 10);  
define ('PDF_MARGIN_TOP', 27);  
define ('PDF_MARGIN_BOTTOM', 25);  
define ('PDF_MARGIN_LEFT', 15);  
define ('PDF_MARGIN_RIGHT', 15);  
define ('PDF_FONT_NAME_MAIN', 'helvetica');  
define ('PDF_FONT_SIZE_MAIN', 10);  
define ('PDF_FONT_NAME_DATA', 'helvetica');  
define ('PDF_FONT_SIZE_DATA', 8);  
 * default monospaced font name  
define ('PDF_FONT_MONOSPACED', 'courier');  
 * ratio used to adjust the conversion of pixels to user units  
define ('PDF_IMAGE_SCALE_RATIO', 1.25);  
 * magnification factor for titles  
define('HEAD_MAGNIFICATION', 1.1);  
 * height of cell repect font height  
define('K_CELL_HEIGHT_RATIO', 1.25);  
 * title magnification respect main font size  
define('K_TITLE_MAGNIFICATION', 1.3);  
 * reduction factor for small font  
 * set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language  
define('K_THAI_TOPCHARS', true);  
 * if true allows to call TCPDF methods using HTML syntax  
 * IMPORTANT: For security reason, disable this feature if you are printing user HTML content.  
define('K_TCPDF_CALLS_IN_HTML', true);  
//============================================================+  
//============================================================+  
 
 
        
       |