6.0.018 (2013-05-19)

- The barcode examples were changed to automatically search for the barcode class path (in case the examples directory is not installed under the TCPDF root).
This commit is contained in:
nicolaasuni 2013-05-19 17:46:11 +01:00
parent 246dc8bc3a
commit 9a03e8743c
22 changed files with 140 additions and 63 deletions

View File

@ -1,3 +1,6 @@
6.0.018 (2013-05-19)
- The barcode examples were changed to automatically search for the barcode class path (in case the examples directory is not installed under the TCPDF root).
6.0.017 (2013-05-16)
- The command line tool tcpdf_addfont.php was improved.
- The php logic was removed from configuration files that now contains only constant defines.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 6.0.017
Release date: 2013-05-16
Version: 6.0.018
Release date: 2013-05-19
Author: Nicola Asuni
Copyright (c) 2002-2013:

View File

@ -1,6 +1,6 @@
{
"name": "tecnick.com/tcpdf",
"version": "6.0.017",
"version": "6.0.018",
"homepage": "http://www.tcpdf.org/",
"type": "library",
"description": "TCPDF is a PHP class for generating PDF documents.",

View File

@ -3,7 +3,7 @@
// File name : example_1d_html.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -27,20 +27,20 @@
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
//
// Description : Example for tcpdf_barcodes_1d.php class
// Description : Example for tcpdf_barcodes_2d.php class
//
//============================================================+
/**
* @file
* Example for tcpdf_barcodes_1d.php class
* Example for tcpdf_barcodes_2d.php class
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 1.0.000
*/
// include 1D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_1d.php');
// include 1D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');

View File

@ -3,7 +3,7 @@
// File name : example_1d_png.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -27,20 +27,20 @@
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
//
// Description : Example for tcpdf_barcodes_1d.php class
// Description : Example for tcpdf_barcodes_2d.php class
//
//============================================================+
/**
* @file
* Example for tcpdf_barcodes_1d.php class
* Example for tcpdf_barcodes_2d.php class
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 1.0.000
*/
// include 1D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_1d.php');
// include 1D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');

View File

@ -3,7 +3,7 @@
// File name : example_1d_svg.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -27,20 +27,20 @@
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
//
// Description : Example for tcpdf_barcodes_1d.php class
// Description : Example for tcpdf_barcodes_2d.php class
//
//============================================================+
/**
* @file
* Example for tcpdf_barcodes_1d.php class
* Example for tcpdf_barcodes_2d.php class
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 1.0.000
*/
// include 1D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_1d.php');
// include 1D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');

View File

@ -3,7 +3,7 @@
// File name : example_1d_svgi.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -27,20 +27,20 @@
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
//
// Description : Example for tcpdf_barcodes_1d.php class
// Description : Example for tcpdf_barcodes_2d.php class
//
//============================================================+
/**
* @file
* Example for tcpdf_barcodes_1d.php class
* Example for tcpdf_barcodes_2d.php class
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 1.0.000
*/
// include 1D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_1d.php');
// include 1D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');

View File

@ -3,7 +3,7 @@
// File name : example_2d_html.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');

View File

@ -3,7 +3,7 @@
// File name : example_2d_png.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');

View File

@ -3,7 +3,7 @@
// File name : example_2d_svg.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');

View File

@ -3,7 +3,7 @@
// File name : example_2d_svgi.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');

View File

@ -3,7 +3,7 @@
// File name : example_2d_html.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');

View File

@ -3,7 +3,7 @@
// File name : example_2d_png.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');

View File

@ -3,7 +3,7 @@
// File name : example_2d_svg.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');

View File

@ -3,7 +3,7 @@
// File name : example_2d_svgi.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');

View File

@ -3,7 +3,7 @@
// File name : example_2d_html.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');

View File

@ -3,7 +3,7 @@
// File name : example_2d_png.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');

View File

@ -3,7 +3,7 @@
// File name : example_2d_svg.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');

View File

@ -3,7 +3,7 @@
// File name : example_2d_svgi.php
// Version : 1.0.000
// Begin : 2011-07-21
// Last Update : 2013-03-17
// Last Update : 2013-03-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -39,8 +39,8 @@
* @version 1.0.009
*/
// include 2D barcode class
require_once(dirname(__FILE__).'/../../tcpdf_barcodes_2d.php');
// include 2D barcode class (search for installation path)
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');

View File

@ -0,0 +1,37 @@
<?php
//============================================================+
// File name : tcpdf_barcodes_1d_include.php
// Begin : 2013-05-19
// Last Update : 2013-05-19
//
// Description : Search and include the TCPDF Barcode 1D class.
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* Search and include the TCPDF Barcode 1D class.
* @package com.tecnick.tcpdf
* @abstract TCPDF - Include the main class.
* @author Nicola Asuni
* @since 2013-05-19
*/
// Include the TCPDF 1D barcode class (search the class on the following directories).
$tcpdf_barcodes_1d_include_dirs = array(realpath('../../tcpdf_barcodes_1d.php'), '/usr/share/php/tcpdf/tcpdf_barcodes_1d.php', '/usr/share/tcpdf/tcpdf_barcodes_1d.php', '/usr/share/php-tcpdf/tcpdf_barcodes_1d.php', '/var/www/tcpdf/tcpdf_barcodes_1d.php', '/var/www/html/tcpdf/tcpdf_barcodes_1d.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf_barcodes_1d.php');
foreach ($tcpdf_barcodes_1d_include_dirs as $tcpdf_barcodes_1d_include_path) {
if (file_exists($tcpdf_barcodes_1d_include_path)) {
require_once($tcpdf_barcodes_1d_include_path);
break;
}
}
//============================================================+
// END OF FILE
//============================================================+

View File

@ -0,0 +1,37 @@
<?php
//============================================================+
// File name : tcpdf_barcodes_2d_include.php
// Begin : 2013-05-19
// Last Update : 2013-05-19
//
// Description : Search and include the TCPDF Barcode 1D class.
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com LTD
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* Search and include the TCPDF Barcode 2D class.
* @package com.tecnick.tcpdf
* @abstract TCPDF - Include the main class.
* @author Nicola Asuni
* @since 2013-05-19
*/
// Include the TCPDF 2D barcode class (search the class on the following directories).
$tcpdf_barcodes_2d_include_dirs = array(realpath('../../tcpdf_barcodes_2d.php'), '/usr/share/php/tcpdf/tcpdf_barcodes_2d.php', '/usr/share/tcpdf/tcpdf_barcodes_2d.php', '/usr/share/php-tcpdf/tcpdf_barcodes_2d.php', '/var/www/tcpdf/tcpdf_barcodes_2d.php', '/var/www/html/tcpdf/tcpdf_barcodes_2d.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf_barcodes_2d.php');
foreach ($tcpdf_barcodes_2d_include_dirs as $tcpdf_barcodes_2d_include_path) {
if (file_exists($tcpdf_barcodes_2d_include_path)) {
require_once($tcpdf_barcodes_2d_include_path);
break;
}
}
//============================================================+
// END OF FILE
//============================================================+

View File

@ -1,9 +1,9 @@
<?php
//============================================================+
// File name : tcpdf.php
// Version : 6.0.017
// Version : 6.0.018
// Begin : 2002-08-03
// Last Update : 2013-05-16
// Last Update : 2013-05-19
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
@ -139,7 +139,7 @@
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
* @package com.tecnick.tcpdf
* @author Nicola Asuni
* @version 6.0.017
* @version 6.0.018
*/
// TCPDF configuration
@ -163,7 +163,7 @@ require_once(__DIR__.'/include/tcpdf_static.php');
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
* @package com.tecnick.tcpdf
* @brief PHP class for generating PDF documents without requiring external extensions.
* @version 6.0.017
* @version 6.0.018
* @author Nicola Asuni - info@tecnick.com
*/
class TCPDF {