You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

227 lines
5.2 KiB

  1. <?php
  2. //============================================================+
  3. // File name : tcpdf_config.php
  4. // Begin : 2004-06-11
  5. // Last Update : 2014-12-11
  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-2014 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. // IMPORTANT:
  38. // If you define the constant K_TCPDF_EXTERNAL_CONFIG, all the following settings will be ignored.
  39. // If you use the tcpdf_autoconfig.php, then you can overwrite some values here.
  40. /**
  41. * Installation path (/var/www/tcpdf/).
  42. * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
  43. */
  44. //define ('K_PATH_MAIN', '');
  45. /**
  46. * URL path to tcpdf installation folder (http://localhost/tcpdf/).
  47. * By default it is automatically set but you can also set it as a fixed string to improve performances.
  48. */
  49. //define ('K_PATH_URL', '');
  50. /**
  51. * Path for PDF fonts.
  52. * By default it is automatically set but you can also set it as a fixed string to improve performances.
  53. */
  54. //define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
  55. /**
  56. * Default images directory.
  57. * By default it is automatically set but you can also set it as a fixed string to improve performances.
  58. */
  59. //define ('K_PATH_IMAGES', '');
  60. /**
  61. * Deafult image logo used be the default Header() method.
  62. * Please set here your own logo or an empty string to disable it.
  63. */
  64. //define ('PDF_HEADER_LOGO', '');
  65. /**
  66. * Header logo image width in user units.
  67. */
  68. //define ('PDF_HEADER_LOGO_WIDTH', 0);
  69. /**
  70. * Cache directory for temporary files (full path).
  71. */
  72. //define ('K_PATH_CACHE', '/tmp/');
  73. /**
  74. * Generic name for a blank image.
  75. */
  76. define ('K_BLANK_IMAGE', '_blank.png');
  77. /**
  78. * Page format.
  79. */
  80. define ('PDF_PAGE_FORMAT', 'A4');
  81. /**
  82. * Page orientation (P=portrait, L=landscape).
  83. */
  84. define ('PDF_PAGE_ORIENTATION', 'P');
  85. /**
  86. * Document creator.
  87. */
  88. define ('PDF_CREATOR', 'TCPDF');
  89. /**
  90. * Document author.
  91. */
  92. define ('PDF_AUTHOR', 'TCPDF');
  93. /**
  94. * Header title.
  95. */
  96. define ('PDF_HEADER_TITLE', 'TCPDF Example');
  97. /**
  98. * Header description string.
  99. */
  100. define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
  101. /**
  102. * Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
  103. */
  104. define ('PDF_UNIT', 'mm');
  105. /**
  106. * Header margin.
  107. */
  108. define ('PDF_MARGIN_HEADER', 5);
  109. /**
  110. * Footer margin.
  111. */
  112. define ('PDF_MARGIN_FOOTER', 10);
  113. /**
  114. * Top margin.
  115. */
  116. define ('PDF_MARGIN_TOP', 27);
  117. /**
  118. * Bottom margin.
  119. */
  120. define ('PDF_MARGIN_BOTTOM', 25);
  121. /**
  122. * Left margin.
  123. */
  124. define ('PDF_MARGIN_LEFT', 15);
  125. /**
  126. * Right margin.
  127. */
  128. define ('PDF_MARGIN_RIGHT', 15);
  129. /**
  130. * Default main font name.
  131. */
  132. define ('PDF_FONT_NAME_MAIN', 'helvetica');
  133. /**
  134. * Default main font size.
  135. */
  136. define ('PDF_FONT_SIZE_MAIN', 10);
  137. /**
  138. * Default data font name.
  139. */
  140. define ('PDF_FONT_NAME_DATA', 'helvetica');
  141. /**
  142. * Default data font size.
  143. */
  144. define ('PDF_FONT_SIZE_DATA', 8);
  145. /**
  146. * Default monospaced font name.
  147. */
  148. define ('PDF_FONT_MONOSPACED', 'courier');
  149. /**
  150. * Ratio used to adjust the conversion of pixels to user units.
  151. */
  152. define ('PDF_IMAGE_SCALE_RATIO', 1.25);
  153. /**
  154. * Magnification factor for titles.
  155. */
  156. define('HEAD_MAGNIFICATION', 1.1);
  157. /**
  158. * Height of cell respect font height.
  159. */
  160. define('K_CELL_HEIGHT_RATIO', 1.25);
  161. /**
  162. * Title magnification respect main font size.
  163. */
  164. define('K_TITLE_MAGNIFICATION', 1.3);
  165. /**
  166. * Reduction factor for small font.
  167. */
  168. define('K_SMALL_RATIO', 2/3);
  169. /**
  170. * Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
  171. */
  172. define('K_THAI_TOPCHARS', true);
  173. /**
  174. * If true allows to call TCPDF methods using HTML syntax
  175. * IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
  176. */
  177. define('K_TCPDF_CALLS_IN_HTML', false);
  178. /**
  179. * If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
  180. */
  181. define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
  182. /**
  183. * Default timezone for datetime functions
  184. */
  185. define('K_TIMEZONE', 'UTC');
  186. //============================================================+
  187. // END OF FILE
  188. //============================================================+