mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-11-22 04:45:17 +00:00
6.0.019 (2013-06-04)
- The magic constant __DIR__ was replaced with dirname(__FILE__) for php 5.2 compatibility. - The exceptions raised by file_exists() function were suppressed.
This commit is contained in:
parent
9a03e8743c
commit
e27aa651bb
@ -1,3 +1,7 @@
|
||||
6.0.019 (2013-06-04)
|
||||
- The magic constant __DIR__ was replaced with dirname(__FILE__) for php 5.2 compatibility.
|
||||
- The exceptions raised by file_exists() function were suppressed.
|
||||
|
||||
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).
|
||||
|
||||
|
@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
||||
------------------------------------------------------------
|
||||
|
||||
Name: TCPDF
|
||||
Version: 6.0.018
|
||||
Release date: 2013-05-19
|
||||
Version: 6.0.019
|
||||
Release date: 2013-06-04
|
||||
Author: Nicola Asuni
|
||||
|
||||
Copyright (c) 2002-2013:
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tecnick.com/tcpdf",
|
||||
"version": "6.0.018",
|
||||
"version": "6.0.019",
|
||||
"homepage": "http://www.tcpdf.org/",
|
||||
"type": "library",
|
||||
"description": "TCPDF is a PHP class for generating PDF documents.",
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 1D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 1D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 1D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 1D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_1d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'DATAMATRIX');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
// include 2D barcode class (search for installation path)
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d_include.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d_include.php');
|
||||
|
||||
// set the barcode content and type
|
||||
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');
|
||||
|
@ -26,7 +26,7 @@
|
||||
// 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)) {
|
||||
if (@file_exists($tcpdf_barcodes_1d_include_path)) {
|
||||
require_once($tcpdf_barcodes_1d_include_path);
|
||||
break;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
// 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)) {
|
||||
if (@file_exists($tcpdf_barcodes_2d_include_path)) {
|
||||
require_once($tcpdf_barcodes_2d_include_path);
|
||||
break;
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ define ('K_TCPDF_EXTERNAL_CONFIG', true);
|
||||
* Default images directory.
|
||||
* By default it is automatically set but you can also set it as a fixed string to improve performances.
|
||||
*/
|
||||
define ('K_PATH_IMAGES', __DIR__.'/../images/');
|
||||
define ('K_PATH_IMAGES', dirname(__FILE__).'/../images/');
|
||||
|
||||
/**
|
||||
* Deafult image logo used be the default Header() method.
|
||||
|
@ -60,7 +60,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
|
||||
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
||||
|
||||
// set some language-dependent strings (optional)
|
||||
if (file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
|
||||
require_once(dirname(__FILE__).'/lang/eng.php');
|
||||
$pdf->setLanguageArray($l);
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ require_once('config/tcpdf_config_alt.php');
|
||||
// Include the main TCPDF library (search the library on the following directories).
|
||||
$tcpdf_include_dirs = array(realpath('../tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf.php');
|
||||
foreach ($tcpdf_include_dirs as $tcpdf_include_path) {
|
||||
if (file_exists($tcpdf_include_path)) {
|
||||
if (@file_exists($tcpdf_include_path)) {
|
||||
require_once($tcpdf_include_path);
|
||||
break;
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ class TCPDF_FONTS {
|
||||
$outpath = self::_getfontpath();
|
||||
}
|
||||
// check if this font already exist
|
||||
if (file_exists($outpath.$font_name.'.php')) {
|
||||
if (@file_exists($outpath.$font_name.'.php')) {
|
||||
// this font already exist (delete it from fonts folder to rebuild it)
|
||||
return $font_name;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ class TCPDF_STATIC {
|
||||
* Current TCPDF version.
|
||||
* @private static
|
||||
*/
|
||||
private static $tcpdf_version = '6.0.017';
|
||||
private static $tcpdf_version = '6.0.019';
|
||||
|
||||
/**
|
||||
* String alias for total number of pages.
|
||||
|
62
tcpdf.php
62
tcpdf.php
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
//============================================================+
|
||||
// File name : tcpdf.php
|
||||
// Version : 6.0.018
|
||||
// Version : 6.0.019
|
||||
// Begin : 2002-08-03
|
||||
// Last Update : 2013-05-19
|
||||
// Last Update : 2013-06-04
|
||||
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
|
||||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
|
||||
// -------------------------------------------------------------------
|
||||
@ -139,21 +139,21 @@
|
||||
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
||||
* @package com.tecnick.tcpdf
|
||||
* @author Nicola Asuni
|
||||
* @version 6.0.018
|
||||
* @version 6.0.019
|
||||
*/
|
||||
|
||||
// TCPDF configuration
|
||||
require_once(__DIR__.'/tcpdf_autoconfig.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_autoconfig.php');
|
||||
// TCPDF static font methods and data
|
||||
require_once(__DIR__.'/include/tcpdf_font_data.php');
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_font_data.php');
|
||||
// TCPDF static font methods and data
|
||||
require_once(__DIR__.'/include/tcpdf_fonts.php');
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_fonts.php');
|
||||
// TCPDF static color methods and data
|
||||
require_once(__DIR__.'/include/tcpdf_colors.php');
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_colors.php');
|
||||
// TCPDF static image methods and data
|
||||
require_once(__DIR__.'/include/tcpdf_images.php');
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_images.php');
|
||||
// TCPDF static methods and data
|
||||
require_once(__DIR__.'/include/tcpdf_static.php');
|
||||
require_once(dirname(__FILE__).'/include/tcpdf_static.php');
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
@ -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.018
|
||||
* @version 6.0.019
|
||||
* @author Nicola Asuni - info@tecnick.com
|
||||
*/
|
||||
class TCPDF {
|
||||
@ -4275,23 +4275,23 @@ class TCPDF {
|
||||
}
|
||||
$missing_style = false; // true when the font style variation is missing
|
||||
// search and include font file
|
||||
if (TCPDF_STATIC::empty_string($fontfile) OR (!file_exists($fontfile))) {
|
||||
if (TCPDF_STATIC::empty_string($fontfile) OR (!@file_exists($fontfile))) {
|
||||
// build a standard filenames for specified font
|
||||
$tmp_fontfile = str_replace(' ', '', $family).strtolower($style).'.php';
|
||||
// search files on various directories
|
||||
if (($fontdir !== false) AND file_exists($fontdir.$tmp_fontfile)) {
|
||||
if (($fontdir !== false) AND @file_exists($fontdir.$tmp_fontfile)) {
|
||||
$fontfile = $fontdir.$tmp_fontfile;
|
||||
} elseif (file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) {
|
||||
} elseif (@file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) {
|
||||
$fontfile = TCPDF_FONTS::_getfontpath().$tmp_fontfile;
|
||||
} elseif (file_exists($tmp_fontfile)) {
|
||||
} elseif (@file_exists($tmp_fontfile)) {
|
||||
$fontfile = $tmp_fontfile;
|
||||
} elseif (!TCPDF_STATIC::empty_string($style)) {
|
||||
$missing_style = true;
|
||||
// try to remove the style part
|
||||
$tmp_fontfile = str_replace(' ', '', $family).'.php';
|
||||
if (($fontdir !== false) AND file_exists($fontdir.$tmp_fontfile)) {
|
||||
if (($fontdir !== false) AND @file_exists($fontdir.$tmp_fontfile)) {
|
||||
$fontfile = $fontdir.$tmp_fontfile;
|
||||
} elseif (file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) {
|
||||
} elseif (@file_exists(TCPDF_FONTS::_getfontpath().$tmp_fontfile)) {
|
||||
$fontfile = TCPDF_FONTS::_getfontpath().$tmp_fontfile;
|
||||
} else {
|
||||
$fontfile = $tmp_fontfile;
|
||||
@ -4299,7 +4299,7 @@ class TCPDF {
|
||||
}
|
||||
}
|
||||
// include font file
|
||||
if (file_exists($fontfile)) {
|
||||
if (@file_exists($fontfile)) {
|
||||
include($fontfile);
|
||||
} else {
|
||||
$this->Error('Could not include font definition file: '.$family.'');
|
||||
@ -4827,19 +4827,19 @@ class TCPDF {
|
||||
$this->PageAnnots[$page][] = array('n' => ++$this->n, 'x' => $x, 'y' => $y, 'w' => $w, 'h' => $h, 'txt' => $text, 'opt' => $opt, 'numspaces' => $spaces);
|
||||
if (!$this->pdfa_mode) {
|
||||
if ((($opt['Subtype'] == 'FileAttachment') OR ($opt['Subtype'] == 'Sound')) AND (!TCPDF_STATIC::empty_string($opt['FS']))
|
||||
AND (file_exists($opt['FS']) OR TCPDF_STATIC::isValidURL($opt['FS']))
|
||||
AND (@file_exists($opt['FS']) OR TCPDF_STATIC::isValidURL($opt['FS']))
|
||||
AND (!isset($this->embeddedfiles[basename($opt['FS'])]))) {
|
||||
$this->embeddedfiles[basename($opt['FS'])] = array('f' => ++$this->n, 'n' => ++$this->n, 'file' => $opt['FS']);
|
||||
}
|
||||
}
|
||||
// Add widgets annotation's icons
|
||||
if (isset($opt['mk']['i']) AND file_exists($opt['mk']['i'])) {
|
||||
if (isset($opt['mk']['i']) AND @file_exists($opt['mk']['i'])) {
|
||||
$this->Image($opt['mk']['i'], '', '', 10, 10, '', '', '', false, 300, '', false, false, 0, false, true);
|
||||
}
|
||||
if (isset($opt['mk']['ri']) AND file_exists($opt['mk']['ri'])) {
|
||||
if (isset($opt['mk']['ri']) AND @file_exists($opt['mk']['ri'])) {
|
||||
$this->Image($opt['mk']['ri'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true);
|
||||
}
|
||||
if (isset($opt['mk']['ix']) AND file_exists($opt['mk']['ix'])) {
|
||||
if (isset($opt['mk']['ix']) AND @file_exists($opt['mk']['ix'])) {
|
||||
$this->Image($opt['mk']['ix'], '', '', 0, 0, '', '', '', false, 300, '', false, false, 0, false, true);
|
||||
}
|
||||
}
|
||||
@ -4859,7 +4859,7 @@ class TCPDF {
|
||||
foreach ($this->embeddedfiles as $filename => $filedata) {
|
||||
// update name tree
|
||||
$this->efnames[$filename] = $filedata['f'].' 0 R';
|
||||
// embedded file specification object
|
||||
// embedded file specification object
|
||||
$out = $this->_getobj($filedata['f'])."\n";
|
||||
$out .= '<</Type /Filespec /F '.$this->_datastring($filename, $filedata['f']).' /EF <</F '.$filedata['n'].' 0 R>> >>';
|
||||
$out .= "\n".'endobj';
|
||||
@ -8748,11 +8748,11 @@ class TCPDF {
|
||||
$file = strtolower($file);
|
||||
$fontfile = '';
|
||||
// search files on various directories
|
||||
if (($fontdir !== false) AND file_exists($fontdir.$file)) {
|
||||
if (($fontdir !== false) AND @file_exists($fontdir.$file)) {
|
||||
$fontfile = $fontdir.$file;
|
||||
} elseif (file_exists(TCPDF_FONTS::_getfontpath().$file)) {
|
||||
} elseif (@file_exists(TCPDF_FONTS::_getfontpath().$file)) {
|
||||
$fontfile = TCPDF_FONTS::_getfontpath().$file;
|
||||
} elseif (file_exists($file)) {
|
||||
} elseif (@file_exists($file)) {
|
||||
$fontfile = $file;
|
||||
}
|
||||
if (!TCPDF_STATIC::empty_string($fontfile)) {
|
||||
@ -8974,11 +8974,11 @@ class TCPDF {
|
||||
// search and get ctg font file to embedd
|
||||
$fontfile = '';
|
||||
// search files on various directories
|
||||
if (($fontdir !== false) AND file_exists($fontdir.$ctgfile)) {
|
||||
if (($fontdir !== false) AND @file_exists($fontdir.$ctgfile)) {
|
||||
$fontfile = $fontdir.$ctgfile;
|
||||
} elseif (file_exists(TCPDF_FONTS::_getfontpath().$ctgfile)) {
|
||||
} elseif (@file_exists(TCPDF_FONTS::_getfontpath().$ctgfile)) {
|
||||
$fontfile = TCPDF_FONTS::_getfontpath().$ctgfile;
|
||||
} elseif (file_exists($ctgfile)) {
|
||||
} elseif (@file_exists($ctgfile)) {
|
||||
$fontfile = $ctgfile;
|
||||
}
|
||||
if (TCPDF_STATIC::empty_string($fontfile)) {
|
||||
@ -9613,7 +9613,7 @@ class TCPDF {
|
||||
// if required, add standard sRGB_IEC61966-2.1 blackscaled ICC colour profile
|
||||
if ($this->pdfa_mode OR $this->force_srgb) {
|
||||
$iccobj = $this->_newobj();
|
||||
$icc = file_get_contents(__DIR__.'/include/sRGB.icc');
|
||||
$icc = file_get_contents(dirname(__FILE__).'/include/sRGB.icc');
|
||||
$filter = '';
|
||||
if ($this->compress) {
|
||||
$filter = ' /Filter /FlateDecode';
|
||||
@ -15051,7 +15051,7 @@ class TCPDF {
|
||||
if (TCPDF_STATIC::empty_string(trim($code))) {
|
||||
return;
|
||||
}
|
||||
require_once(__DIR__.'/tcpdf_barcodes_1d.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_1d.php');
|
||||
// save current graphic settings
|
||||
$gvars = $this->getGraphicVars();
|
||||
// create new barcode object
|
||||
@ -15367,7 +15367,7 @@ class TCPDF {
|
||||
if (TCPDF_STATIC::empty_string(trim($code))) {
|
||||
return;
|
||||
}
|
||||
require_once(__DIR__.'/tcpdf_barcodes_2d.php');
|
||||
require_once(dirname(__FILE__).'/tcpdf_barcodes_2d.php');
|
||||
// save current graphic settings
|
||||
$gvars = $this->getGraphicVars();
|
||||
// create new barcode object
|
||||
|
@ -59,9 +59,9 @@ if (substr($_SERVER['DOCUMENT_ROOT'], -1) != '/') {
|
||||
// Load main configuration file only if the K_TCPDF_EXTERNAL_CONFIG constant is set to false.
|
||||
if (!defined('K_TCPDF_EXTERNAL_CONFIG') OR !K_TCPDF_EXTERNAL_CONFIG) {
|
||||
// define a list of default config files in order of priority
|
||||
$tcpdf_config_files = array(__DIR__.'/config/tcpdf_config.php', '/etc/php-tcpdf/tcpdf_config.php', '/etc/tcpdf/tcpdf_config.php', '/etc/tcpdf_config.php');
|
||||
$tcpdf_config_files = array(dirname(__FILE__).'/config/tcpdf_config.php', '/etc/php-tcpdf/tcpdf_config.php', '/etc/tcpdf/tcpdf_config.php', '/etc/tcpdf_config.php');
|
||||
foreach ($tcpdf_config_files as $tcpdf_config) {
|
||||
if (file_exists($tcpdf_config) AND is_readable($tcpdf_config)) {
|
||||
if (@file_exists($tcpdf_config) AND is_readable($tcpdf_config)) {
|
||||
require_once($tcpdf_config);
|
||||
break;
|
||||
}
|
||||
@ -69,7 +69,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG') OR !K_TCPDF_EXTERNAL_CONFIG) {
|
||||
}
|
||||
|
||||
if (!defined('K_PATH_MAIN')) {
|
||||
define ('K_PATH_MAIN', __DIR__.'/');
|
||||
define ('K_PATH_MAIN', dirname(__FILE__).'/');
|
||||
}
|
||||
|
||||
if (!defined('K_PATH_FONTS')) {
|
||||
@ -93,7 +93,7 @@ if (!defined('K_PATH_URL')) {
|
||||
if (!defined('K_PATH_IMAGES')) {
|
||||
$tcpdf_images_dirs = array(K_PATH_MAIN.'examples/images/', K_PATH_MAIN.'images/', '/usr/share/doc/php-tcpdf/examples/images/', '/usr/share/doc/tcpdf/examples/images/', '/usr/share/doc/php/tcpdf/examples/images/', '/var/www/tcpdf/images/', '/var/www/html/tcpdf/images/', '/usr/local/apache2/htdocs/tcpdf/images/', K_PATH_MAIN);
|
||||
foreach ($tcpdf_images_dirs as $tcpdf_images_path) {
|
||||
if (file_exists($tcpdf_images_path)) {
|
||||
if (@file_exists($tcpdf_images_path)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -102,7 +102,7 @@ if (!defined('K_PATH_IMAGES')) {
|
||||
|
||||
if (!defined('PDF_HEADER_LOGO')) {
|
||||
$tcpdf_header_logo = '';
|
||||
if (file_exists(K_PATH_IMAGES.'tcpdf_logo.jpg')) {
|
||||
if (@file_exists(K_PATH_IMAGES.'tcpdf_logo.jpg')) {
|
||||
$tcpdf_header_logo = 'tcpdf_logo.jpg';
|
||||
}
|
||||
define ('PDF_HEADER_LOGO', $tcpdf_header_logo);
|
||||
|
@ -46,9 +46,9 @@ if (php_sapi_name() != 'cli') {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$tcpdf_include_dirs = array(realpath(__DIR__.'/../tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf.php');
|
||||
$tcpdf_include_dirs = array(realpath(dirname(__FILE__).'/../tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local/apache2/htdocs/tcpdf/tcpdf.php');
|
||||
foreach ($tcpdf_include_dirs as $tcpdf_include_path) {
|
||||
if (file_exists($tcpdf_include_path)) {
|
||||
if (@file_exists($tcpdf_include_path)) {
|
||||
require_once($tcpdf_include_path);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user