[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/tcpdf/config/ -> tcpdf_config.php (source)

   1  <?php
   2  //============================================================+
   3  // File name   : tcpdf_config.php
   4  // Begin       : 2004-06-11
   5  // Last Update : 2010-09-24
   6  //
   7  // Description : Configuration file for TCPDF.
   8  //
   9  // Author: Nicola Asuni
  10  //
  11  // (c) Copyright:
  12  //               Nicola Asuni
  13  //               Tecnick.com s.r.l.
  14  //               Via Della Pace, 11
  15  //               09044 Quartucciu (CA)
  16  //               ITALY
  17  //               www.tecnick.com
  18  //               [email protected]
  19  //============================================================+
  20  
  21  /**
  22   * Configuration file for TCPDF.
  23   * @author Nicola Asuni
  24   * @copyright 2004-2008 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - [email protected]
  25   * @package com.tecnick.tcpdf
  26   * @version 4.0.014
  27   * @link http://tcpdf.sourceforge.net
  28   * @license http://www.gnu.org/copyleft/lesser.html LGPL
  29   * @since 2004-10-27
  30   */
  31  
  32  // If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
  33  //crm-now: from config.inc.php
  34  global $root_directory, $site_URL;
  35  
  36  if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
  37      
  38      /**
  39       * Installation path (/var/www/tcpdf/).
  40       * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
  41       */
  42      define ('K_PATH_MAIN', $root_directory."libraries/tcpdf/");
  43      
  44      // Automatic calculation for the following K_PATH_URL constant
  45      if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
  46          if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
  47              $k_path_url = 'https://';
  48          } else {
  49              $k_path_url = 'http://';
  50          }
  51          $k_path_url .= $_SERVER['HTTP_HOST'];
  52          $k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
  53      }
  54      
  55      /**
  56       * URL path to tcpdf installation folder (http://localhost/tcpdf/).
  57       * By default it is automatically calculated but you can also set it as a fixed string to improve performances..
  58       */
  59      define ('K_PATH_URL', $site_URL."/libraries/tcpdf/");
  60      
  61      /**
  62       * path for PDF fonts
  63       * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
  64       */
  65      define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
  66      
  67      /**
  68       * cache directory for temporary files (full path)
  69       */
  70      define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');
  71      
  72      /**
  73       * cache directory for temporary files (url path)
  74       */
  75      define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/');
  76      
  77      /**
  78       *images directory
  79       */
  80      define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
  81      
  82      /**
  83       * blank image
  84       */
  85      define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
  86      
  87      /**
  88       * page format
  89       */
  90      define ('PDF_PAGE_FORMAT', 'A4');
  91      
  92      /**
  93       * page orientation (P=portrait, L=landscape)
  94       */
  95      define ('PDF_PAGE_ORIENTATION', 'P');
  96      
  97      /**
  98       * document creator
  99       */
 100      define ('PDF_CREATOR', 'TCPDF');
 101      
 102      /**
 103       * document author
 104       */
 105      define ('PDF_AUTHOR', 'TCPDF');
 106      
 107      /**
 108       * header title
 109       */
 110      define ('PDF_HEADER_TITLE', 'TCPDF Example');
 111      
 112      /**
 113       * header description string
 114       */
 115      define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
 116      
 117      /**
 118       * image logo
 119       */
 120      define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
 121      
 122      /**
 123       * header logo image width [mm]
 124       */
 125      define ('PDF_HEADER_LOGO_WIDTH', 20);
 126      
 127      /**
 128       *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
 129       */
 130      define ('PDF_UNIT', 'mm');
 131      
 132      /**
 133       * header margin
 134       */
 135      define ('PDF_MARGIN_HEADER', 20);
 136      
 137      /**
 138       * footer margin
 139       */
 140      define ('PDF_MARGIN_FOOTER', 40);
 141      
 142      /**
 143       * top margin
 144       */
 145      define ('PDF_MARGIN_TOP', 20);
 146      
 147      /**
 148       * bottom margin
 149       */
 150      define ('PDF_MARGIN_BOTTOM', 30);
 151      
 152      /**
 153       * left margin
 154       */
 155      define ('PDF_MARGIN_LEFT', 20);
 156      
 157      /**
 158       * right margin
 159       */
 160      define ('PDF_MARGIN_RIGHT', 15);
 161      
 162      /**
 163       * default main font name
 164       */
 165      define ('PDF_FONT_NAME_MAIN', 'helvetica');
 166      
 167      /**
 168       * default main font size
 169       */
 170      define ('PDF_FONT_SIZE_MAIN', 10);
 171      
 172      /**
 173       * default data font name
 174       */
 175      define ('PDF_FONT_NAME_DATA', 'helvetica');
 176      
 177      /**
 178       * default data font size
 179       */
 180      define ('PDF_FONT_SIZE_DATA', 8);
 181      
 182      /**
 183       * default monospaced font name
 184       */
 185      define ('PDF_FONT_MONOSPACED', 'courier');
 186      
 187      /**
 188       * ratio used to adjust the conversion of pixels to user units
 189       */
 190      define ('PDF_IMAGE_SCALE_RATIO', 1);
 191      
 192      /**
 193       * magnification factor for titles
 194       */
 195      define('HEAD_MAGNIFICATION', 1.1);
 196      
 197      /**
 198       * height of cell repect font height
 199       */
 200      define('K_CELL_HEIGHT_RATIO', 1.25);
 201      
 202      /**
 203       * title magnification respect main font size
 204       */
 205      define('K_TITLE_MAGNIFICATION', 1.3);
 206      
 207      /**
 208       * reduction factor for small font
 209       */
 210      define('K_SMALL_RATIO', 2/3);
 211  }
 212  
 213  //============================================================+
 214  // END OF FILE                                                 
 215  //============================================================+
 216  ?>


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1