replace tcpdf with TCPDF

This commit is contained in:
Dennis Eichhorn 2023-09-29 03:30:45 +00:00
parent c90eb0fe29
commit 131969e285
17 changed files with 21 additions and 21 deletions

View File

@ -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.

12
tcpdf/tcpdf.php → tcpdf/TCPDF.php Executable file → Normal file
View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
//============================================================+
// File name : tcpdf.php
// File name : TCPDF.php
// Version : 6.4.4
// Begin : 2002-08-03
// Last Update : 2021-12-31
@ -110,15 +110,15 @@
// TCPDF configuration
require_once(__DIR__.'/tcpdf_autoconfig.php');
// TCPDF static font methods and data
require_once(__DIR__.'/include/tcpdf_font_data.php');
require_once(__DIR__.'/include/TCPDF_FONT_DATA.php');
// TCPDF static font methods and data
require_once(__DIR__.'/include/tcpdf_fonts.php');
require_once(__DIR__.'/include/TCPDF_FONTS.php');
// TCPDF static color methods and data
require_once(__DIR__.'/include/tcpdf_colors.php');
require_once(__DIR__.'/include/TCPDF_COLORS.php');
// TCPDF static image methods and data
require_once(__DIR__.'/include/tcpdf_images.php');
require_once(__DIR__.'/include/TCPDF_IMAGES.php');
// TCPDF static methods and data
require_once(__DIR__.'/include/tcpdf_static.php');
require_once(__DIR__.'/include/TCPDF_STATIC.php');
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -252,14 +252,14 @@ class TCPDF2DBarcode {
$qrtype = \strtoupper($mode[0]);
switch ($qrtype) {
case 'DATAMATRIX': { // DATAMATRIX (ISO/IEC 16022)
require_once(\dirname(__FILE__).'/include/barcodes/datamatrix.php');
require_once(\dirname(__FILE__).'/include/barcodes/Datamatrix.php');
$qrcode = new Datamatrix($code);
$this->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
}

0
tcpdf/tcpdf_barcodes_1d.php → tcpdf/TCPDFBarcode.php Executable file → Normal file
View File

2
tcpdf/tcpdf_import.php → tcpdf/TCPDF_IMPORT.php Executable file → Normal file
View File

@ -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');

2
tcpdf/tcpdf_parser.php → tcpdf/TCPDF_PARSER.php Executable file → Normal file
View File

@ -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

View File

@ -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)) {

View File

View File

View File

View File

View File

View File

@ -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);