diff --git a/PhpOffice/PhpWord/Writer/PDF/TCPDF.php b/PhpOffice/PhpWord/Writer/PDF/TCPDF.php index 02853ed..0439a9a 100755 --- a/PhpOffice/PhpWord/Writer/PDF/TCPDF.php +++ b/PhpOffice/PhpWord/Writer/PDF/TCPDF.php @@ -33,7 +33,7 @@ class TCPDF extends AbstractRenderer implements WriterInterface * * @var string */ - protected $includeFile = 'tcpdf.php'; + protected $includeFile = 'TCPDF.php'; /** * Gets the implementation of external PDF library that should be used. diff --git a/tcpdf/tcpdf.php b/tcpdf/TCPDF.php old mode 100755 new mode 100644 similarity index 99% rename from tcpdf/tcpdf.php rename to tcpdf/TCPDF.php index 29dfd6d..8ef09e7 --- a/tcpdf/tcpdf.php +++ b/tcpdf/TCPDF.php @@ -1,6 +1,6 @@ barcode_array = $qrcode->getBarcodeArray(); $this->barcode_array['code'] = $code; break; } case 'PDF417': { // PDF417 (ISO/IEC 15438:2006) - require_once(\dirname(__FILE__).'/include/barcodes/pdf417.php'); + require_once(\dirname(__FILE__).'/include/barcodes/PDF417.php'); if (!isset($mode[1]) || ($mode[1] === '')) { $aspectratio = 2; // default aspect ratio (width / height) } else { @@ -290,7 +290,7 @@ class TCPDF2DBarcode { break; } case 'QRCODE': { // QR-CODE - require_once(\dirname(__FILE__).'/include/barcodes/qrcode.php'); + require_once(\dirname(__FILE__).'/include/barcodes/QRcode.php'); if (!isset($mode[1]) || (!\in_array($mode[1],['L','M','Q','H']))) { $mode[1] = 'L'; // Ddefault: Low error correction } diff --git a/tcpdf/tcpdf_barcodes_1d.php b/tcpdf/TCPDFBarcode.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/tcpdf_barcodes_1d.php rename to tcpdf/TCPDFBarcode.php diff --git a/tcpdf/tcpdf_import.php b/tcpdf/TCPDF_IMPORT.php old mode 100755 new mode 100644 similarity index 98% rename from tcpdf/tcpdf_import.php rename to tcpdf/TCPDF_IMPORT.php index 70ec127..77ed0e7 --- a/tcpdf/tcpdf_import.php +++ b/tcpdf/TCPDF_IMPORT.php @@ -43,7 +43,7 @@ */ // include the TCPDF class -require_once(\dirname(__FILE__).'/tcpdf.php'); +require_once(\dirname(__FILE__).'/TCPDF.php'); // include PDF parser class require_once(\dirname(__FILE__).'/tcpdf_parser.php'); diff --git a/tcpdf/tcpdf_parser.php b/tcpdf/TCPDF_PARSER.php old mode 100755 new mode 100644 similarity index 99% rename from tcpdf/tcpdf_parser.php rename to tcpdf/TCPDF_PARSER.php index 02100cb..19c47e3 --- a/tcpdf/tcpdf_parser.php +++ b/tcpdf/TCPDF_PARSER.php @@ -41,7 +41,7 @@ */ // include class for decoding filters -require_once(\dirname(__FILE__).'/include/tcpdf_filters.php'); +require_once(\dirname(__FILE__).'/include/TCPDF_FILTERS.php'); /** * @class TCPDF_PARSER diff --git a/tcpdf/examples/tcpdf_include.php b/tcpdf/examples/tcpdf_include.php index 0ec20a2..08412d8 100755 --- a/tcpdf/examples/tcpdf_include.php +++ b/tcpdf/examples/tcpdf_include.php @@ -28,14 +28,14 @@ require_once('config/tcpdf_config_alt.php'); // Include the main TCPDF library (search the library on the following directories). $tcpdf_include_dirs = [ - \realpath(\dirname(__FILE__) . '/../tcpdf.php'),// True source file - \realpath('../tcpdf.php'),// Relative from $PWD - '/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', + \realpath(\dirname(__FILE__) . '/../TCPDF.php'),// True source file + \realpath('../TCPDF.php'),// Relative from $PWD + '/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)) { diff --git a/tcpdf/include/tcpdf_colors.php b/tcpdf/include/TCPDF_COLORS.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/tcpdf_colors.php rename to tcpdf/include/TCPDF_COLORS.php diff --git a/tcpdf/include/tcpdf_filters.php b/tcpdf/include/TCPDF_FILTERS.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/tcpdf_filters.php rename to tcpdf/include/TCPDF_FILTERS.php diff --git a/tcpdf/include/tcpdf_fonts.php b/tcpdf/include/TCPDF_FONTS.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/tcpdf_fonts.php rename to tcpdf/include/TCPDF_FONTS.php diff --git a/tcpdf/include/tcpdf_font_data.php b/tcpdf/include/TCPDF_FONT_DATA.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/tcpdf_font_data.php rename to tcpdf/include/TCPDF_FONT_DATA.php diff --git a/tcpdf/include/tcpdf_images.php b/tcpdf/include/TCPDF_IMAGES.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/tcpdf_images.php rename to tcpdf/include/TCPDF_IMAGES.php diff --git a/tcpdf/include/tcpdf_static.php b/tcpdf/include/TCPDF_STATIC.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/tcpdf_static.php rename to tcpdf/include/TCPDF_STATIC.php diff --git a/tcpdf/include/barcodes/datamatrix.php b/tcpdf/include/barcodes/Datamatrix.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/barcodes/datamatrix.php rename to tcpdf/include/barcodes/Datamatrix.php diff --git a/tcpdf/include/barcodes/pdf417.php b/tcpdf/include/barcodes/PDF417.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/barcodes/pdf417.php rename to tcpdf/include/barcodes/PDF417.php diff --git a/tcpdf/include/barcodes/qrcode.php b/tcpdf/include/barcodes/QRcode.php old mode 100755 new mode 100644 similarity index 100% rename from tcpdf/include/barcodes/qrcode.php rename to tcpdf/include/barcodes/QRcode.php diff --git a/tcpdf/tools/tcpdf_addfont.php b/tcpdf/tools/tcpdf_addfont.php index b63f855..a86168f 100755 --- a/tcpdf/tools/tcpdf_addfont.php +++ b/tcpdf/tools/tcpdf_addfont.php @@ -46,7 +46,7 @@ if (PHP_SAPI != 'cli') { exit(1); } -$tcpdf_include_dirs = [\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']; +$tcpdf_include_dirs = [\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)) { require_once($tcpdf_include_path);