tcpdf_config.php 5.1 KB

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