2009-09-30 09:18:36 +00:00
|
|
|
<?php
|
|
|
|
//============================================================+
|
|
|
|
// File name : tcpdf_config.php
|
|
|
|
// Begin : 2004-06-11
|
2013-05-16 16:17:45 +00:00
|
|
|
// Last Update : 2013-05-16
|
2009-09-30 09:18:36 +00:00
|
|
|
//
|
2013-05-14 20:28:42 +00:00
|
|
|
// Description : Example of alternative configuration file for TCPDF.
|
2013-04-22 19:23:46 +00:00
|
|
|
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
2011-12-23 17:19:43 +00:00
|
|
|
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
|
|
|
// -------------------------------------------------------------------
|
2013-02-06 20:04:08 +00:00
|
|
|
// Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD
|
2009-09-30 09:18:36 +00:00
|
|
|
//
|
2011-12-23 17:19:43 +00:00
|
|
|
// This file is part of TCPDF software library.
|
2009-09-30 09:18:36 +00:00
|
|
|
//
|
2011-12-23 17:19:43 +00:00
|
|
|
// TCPDF is free software: you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License as
|
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// TCPDF is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//
|
|
|
|
// See LICENSE.TXT file for more information.
|
2009-09-30 09:18:36 +00:00
|
|
|
//============================================================+
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Example of alternative configuration file for TCPDF.
|
2009-09-30 09:18:36 +00:00
|
|
|
* @author Nicola Asuni
|
|
|
|
* @package com.tecnick.tcpdf
|
2010-04-01 18:40:11 +00:00
|
|
|
* @version 4.9.005
|
2009-09-30 09:18:36 +00:00
|
|
|
* @since 2004-10-27
|
|
|
|
*/
|
|
|
|
|
2013-05-16 16:17:45 +00:00
|
|
|
/**
|
|
|
|
* Define the following constant to ignore the default configuration file.
|
|
|
|
*/
|
2013-05-14 20:28:42 +00:00
|
|
|
define ('K_TCPDF_EXTERNAL_CONFIG', true);
|
|
|
|
|
2009-09-30 09:18:36 +00:00
|
|
|
/**
|
|
|
|
* Installation path (/var/www/tcpdf/).
|
|
|
|
* By default it is automatically calculated but you can also set it as a fixed string to improve performances.
|
|
|
|
*/
|
2013-05-16 16:17:45 +00:00
|
|
|
//define ('K_PATH_MAIN', '');
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* URL path to tcpdf installation folder (http://localhost/tcpdf/).
|
2013-05-14 20:28:42 +00:00
|
|
|
* By default it is automatically set but you can also set it as a fixed string to improve performances.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2013-05-16 16:17:45 +00:00
|
|
|
//define ('K_PATH_URL', '');
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
2013-05-16 16:17:45 +00:00
|
|
|
* Path for PDF fonts.
|
|
|
|
* By default it is automatically set but you can also set it as a fixed string to improve performances.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2013-05-16 16:17:45 +00:00
|
|
|
//define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
2013-05-16 16:17:45 +00:00
|
|
|
* Default images directory.
|
|
|
|
* By default it is automatically set but you can also set it as a fixed string to improve performances.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2013-05-16 16:17:45 +00:00
|
|
|
define ('K_PATH_IMAGES', __DIR__.'/../images/');
|
2009-09-30 09:18:36 +00:00
|
|
|
|
2013-05-16 16:17:45 +00:00
|
|
|
/**
|
|
|
|
* Deafult image logo used be the default Header() method.
|
|
|
|
* Please set here your own logo or an empty string to disable it.
|
|
|
|
*/
|
|
|
|
define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
|
2013-05-15 15:51:49 +00:00
|
|
|
|
2009-09-30 09:18:36 +00:00
|
|
|
/**
|
2013-05-16 16:17:45 +00:00
|
|
|
* Header logo image width in user units.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2013-05-16 16:17:45 +00:00
|
|
|
define ('PDF_HEADER_LOGO_WIDTH', 30);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Cache directory for temporary files (full path).
|
|
|
|
*/
|
|
|
|
define ('K_PATH_CACHE', sys_get_temp_dir().'/');
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
2013-05-16 16:17:45 +00:00
|
|
|
* Generic name for a blank image.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2013-05-16 16:17:45 +00:00
|
|
|
define ('K_BLANK_IMAGE', '_blank.png');
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Page format.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_PAGE_FORMAT', 'A4');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Page orientation (P=portrait, L=landscape).
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_PAGE_ORIENTATION', 'P');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Document creator.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_CREATOR', 'TCPDF');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Document author.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_AUTHOR', 'TCPDF');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Header title.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_HEADER_TITLE', 'TCPDF Example');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Header description string.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_UNIT', 'mm');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Header margin.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_MARGIN_HEADER', 5);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Footer margin.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_MARGIN_FOOTER', 10);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Top margin.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_MARGIN_TOP', 27);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Bottom margin.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_MARGIN_BOTTOM', 25);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Left margin.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_MARGIN_LEFT', 15);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Right margin.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_MARGIN_RIGHT', 15);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Default main font name.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_FONT_NAME_MAIN', 'helvetica');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Default main font size.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_FONT_SIZE_MAIN', 10);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Default data font name.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2009-03-24 18:37:18 +00:00
|
|
|
define ('PDF_FONT_NAME_DATA', 'helvetica');
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Default data font size.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2009-03-24 18:37:18 +00:00
|
|
|
define ('PDF_FONT_SIZE_DATA', 8);
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Default monospaced font name.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define ('PDF_FONT_MONOSPACED', 'courier');
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Ratio used to adjust the conversion of pixels to user units.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
2010-05-05 09:56:22 +00:00
|
|
|
define ('PDF_IMAGE_SCALE_RATIO', 1.25);
|
2009-09-30 09:18:36 +00:00
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Magnification factor for titles.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define('HEAD_MAGNIFICATION', 1.1);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Height of cell respect font height.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define('K_CELL_HEIGHT_RATIO', 1.25);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Title magnification respect main font size.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define('K_TITLE_MAGNIFICATION', 1.3);
|
|
|
|
|
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Reduction factor for small font.
|
2009-09-30 09:18:36 +00:00
|
|
|
*/
|
|
|
|
define('K_SMALL_RATIO', 2/3);
|
|
|
|
|
2010-04-01 18:40:11 +00:00
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
|
2010-04-01 18:40:11 +00:00
|
|
|
*/
|
|
|
|
define('K_THAI_TOPCHARS', true);
|
|
|
|
|
2010-04-02 13:30:26 +00:00
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* If true allows to call TCPDF methods using HTML syntax
|
2010-04-02 13:30:26 +00:00
|
|
|
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
|
|
|
|
*/
|
|
|
|
define('K_TCPDF_CALLS_IN_HTML', true);
|
|
|
|
|
2013-02-06 20:04:08 +00:00
|
|
|
/**
|
2013-05-14 20:28:42 +00:00
|
|
|
* If true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
|
2013-02-06 20:04:08 +00:00
|
|
|
*/
|
|
|
|
define('K_TCPDF_THROW_EXCEPTION_ERROR', false);
|
|
|
|
|
2009-09-30 09:18:36 +00:00
|
|
|
//============================================================+
|
2010-04-01 18:40:11 +00:00
|
|
|
// END OF FILE
|
2009-09-30 09:18:36 +00:00
|
|
|
//============================================================+
|