30
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-05-31 21:30:47 +00:00

6.0.016 (2013-05-15)

- The tcpdf_addfont.php tool was improved (thanks to Remi Collet).
- Constant K_PATH_IMAGES is now automatically set in configuration file.
This commit is contained in:
nicolaasuni 2013-05-15 16:51:49 +01:00
parent 7424ac0d45
commit 8766e002e6
3 changed files with 27 additions and 4 deletions

View File

@ -1,5 +1,6 @@
6.0.016 (2013-05-15) 6.0.016 (2013-05-15)
- The tcpdf_addfont.php tool was improved (thanks to Remi Collet). - The tcpdf_addfont.php tool was improved (thanks to Remi Collet).
- Constant K_PATH_IMAGES is now automatically set in configuration file.
6.0.015 (2013-05-14) 6.0.015 (2013-05-14)
- Some unused vars were removed from AddFont() method. - Some unused vars were removed from AddFont() method.

View File

@ -2,7 +2,7 @@
//============================================================+ //============================================================+
// File name : tcpdf_config.php // File name : tcpdf_config.php
// Begin : 2004-06-11 // Begin : 2004-06-11
// Last Update : 2013-05-14 // Last Update : 2013-05-15
// //
// Description : Configuration file for TCPDF. // Description : Configuration file for TCPDF.
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
@ -114,10 +114,21 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
*/ */
define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Try to automatically set the value for the following K_PATH_IMAGES constant.
// NOTE: delete this section and manually set the K_PATH_IMAGES constant below for better performances.
$tcpdf_images_dirs = array(K_PATH_MAIN.'examples/images/', '/usr/share/doc/tcpdf/', '/usr/share/doc/php-tcpdf/', '/usr/share/doc/php/tcpdf/', K_PATH_MAIN);
foreach ($tcpdf_images_dirs as $tcpdf_images_path) {
if (file_exists($tcpdf_images_path)) {
break;
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/** /**
* Default images directory. * Default images directory.
*/ */
define ('K_PATH_IMAGES', K_PATH_MAIN.'examples/images/'); define ('K_PATH_IMAGES', $tcpdf_images_path);
/** /**
* Blank image. * Blank image.

View File

@ -2,7 +2,7 @@
//============================================================+ //============================================================+
// File name : tcpdf_config.php // File name : tcpdf_config.php
// Begin : 2004-06-11 // Begin : 2004-06-11
// Last Update : 2013-05-14 // Last Update : 2013-05-15
// //
// Description : Example of alternative configuration file for TCPDF. // Description : Example of alternative configuration file for TCPDF.
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
@ -113,10 +113,21 @@ define ('K_PATH_CACHE', sys_get_temp_dir().'/');
*/ */
define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Try to automatically set the value for the following K_PATH_IMAGES constant.
// NOTE: delete this section and manually set the K_PATH_IMAGES constant below for better performances.
$tcpdf_images_dirs = array(K_PATH_MAIN.'examples/images/', '/usr/share/doc/tcpdf/', '/usr/share/doc/php-tcpdf/', '/usr/share/doc/php/tcpdf/', K_PATH_MAIN);
foreach ($tcpdf_images_dirs as $tcpdf_images_path) {
if (file_exists($tcpdf_images_path)) {
break;
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/** /**
* Default images directory. * Default images directory.
*/ */
define ('K_PATH_IMAGES', K_PATH_MAIN.'examples/images/'); define ('K_PATH_IMAGES', $tcpdf_images_path);
/** /**
* Blank image. * Blank image.