diff --git a/plugins/TCPDF/CHANGELOG.TXT b/plugins/TCPDF/CHANGELOG.TXT
index 2394117a..9c0d487b 100644
--- a/plugins/TCPDF/CHANGELOG.TXT
+++ b/plugins/TCPDF/CHANGELOG.TXT
@@ -1,3 +1,18 @@
+6.11.2 (2026-03-03)
+ - Refactor setCompression().
+
+6.11.1 (2026-03-03)
+ - Remove debug line preventing compression.
+
+6.11.0 (2026-03-01)
+ - Updated copyright year.
+ - Updated linked http urls to https.
+ - Fix PHP 8.5 deprecation on curl_close() - PR #838
+ - Fix PHP 8.5 deprecation on null array offset - PR #839
+ - Fixed: Font subsetting - incorrect placement of head checksum - PR #849
+ - Fix imagedestroy() deprecation in PHP 8.5 - PR #851
+ - Fix Rendering of SVG -> PDF issue - PR #855
+
6.10.1 (2025-11-21)
- cI: Add 8.5 to CI matrix - PR #836
- Fix PHP 8.5 deprecation for xml_parser_free - PR #835
@@ -1830,7 +1845,7 @@
addTOCPage(), endTOCPage(), addHTMLTOC().
5.0.000 (2010-05-05)
- - Method ImageSVG() was added to embedd SVG images (see example n. 58). Note that not all SVG images are supported.
+ - Method ImageSVG() was added to embed SVG images (see example n. 58). Note that not all SVG images are supported.
- Method setRasterizeVectorImages() was added to enable/disable rasterization for vector images via ImageMagick library.
- Method RoundedRectXY() was added.
- Method PieSectorXY() was added.
@@ -2557,7 +2572,7 @@
- A bug relative to fill color on next page was fixed.
4.2.007 (2008-11-12)
- - The function setListIndentWidth() was added to set custom indentation widht for HTML lists.
+ - The function setListIndentWidth() was added to set custom indentation width for HTML lists.
4.2.006 (2008-11-06)
- A bug relative to HTML justification was fixed.
@@ -2751,7 +2766,7 @@
4.0.011 (2008-07-23)
- Font support was improved.
- - The folder /fonts/utils contains new utilities and instructions for embedd font files.
+ - The folder /fonts/utils contains new utilities and instructions for embed font files.
- Documentation was updated.
4.0.010 (2008-07-22)
diff --git a/plugins/TCPDF/LICENSE.TXT b/plugins/TCPDF/LICENSE.TXT
index 4e446a12..b85904e8 100644
--- a/plugins/TCPDF/LICENSE.TXT
+++ b/plugins/TCPDF/LICENSE.TXT
@@ -7,7 +7,7 @@
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
- 2002-2025 Nicola Asuni - Tecnick.com LTD
+ 2002-2026 Nicola Asuni - Tecnick.com LTD
**********************************************************************
**********************************************************************
@@ -15,7 +15,7 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -184,7 +184,7 @@ Library.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -828,7 +828,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see .
+ along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
@@ -847,14 +847,14 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
-.
+.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
-.
+.
**********************************************************************
**********************************************************************
diff --git a/plugins/TCPDF/README.md b/plugins/TCPDF/README.md
index 0144f49a..cc5a2c1e 100644
--- a/plugins/TCPDF/README.md
+++ b/plugins/TCPDF/README.md
@@ -6,8 +6,8 @@
* **category** Library
* **author** Nicola Asuni
-* **copyright** 2002-2025 Nicola Asuni - Tecnick.com LTD
-* **license** http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
+* **copyright** 2002-2026 Nicola Asuni - Tecnick.com LTD
+* **license** https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* **link** http://www.tcpdf.org
* **source** https://github.com/tecnickcom/TCPDF
@@ -63,7 +63,7 @@ All the original binary TTF font files have been renamed for compatibility with
The binary files (.z) that begins with the prefix "free" have been extracted from the GNU FreeFont collection (GNU-GPLv3).
The binary files (.z) that begins with the prefix "pdfa" have been derived from the GNU FreeFont, so they are subject to the same license.
For the details of Copyright, License and other information, please check the files inside the directory fonts/freefont-20120503
-Link : http://www.gnu.org/software/freefont/
+Link : https://www.gnu.org/software/freefont/
The binary files (.z) that begins with the prefix "dejavu" have been extracted from the DejaVu fonts 2.33 (Bitstream) collection.
For the details of Copyright, License and other information, please check the files inside the directory fonts/dejavu-fonts-ttf-2.33
@@ -80,4 +80,4 @@ https://packages.debian.org/source/stable/icc-profiles-free
## Developer(s) Contact
-* Nicola Asuni
+*2026 Nicola Asuni
diff --git a/plugins/TCPDF/VERSION b/plugins/TCPDF/VERSION
index 3094a4c6..e18a34b9 100644
--- a/plugins/TCPDF/VERSION
+++ b/plugins/TCPDF/VERSION
@@ -1 +1 @@
-6.10.1
+6.11.2
diff --git a/plugins/TCPDF/composer.json b/plugins/TCPDF/composer.json
index abf4d9b6..ac175a7f 100644
--- a/plugins/TCPDF/composer.json
+++ b/plugins/TCPDF/composer.json
@@ -12,7 +12,7 @@
"barcodes"
],
"homepage": "http://www.tcpdf.org/",
- "version": "6.10.1",
+ "version": "6.11.2",
"license": "LGPL-3.0-or-later",
"authors": [
{
diff --git a/plugins/TCPDF/config/tcpdf_config.php b/plugins/TCPDF/config/tcpdf_config.php
index 9888a677..d430ee4d 100644
--- a/plugins/TCPDF/config/tcpdf_config.php
+++ b/plugins/TCPDF/config/tcpdf_config.php
@@ -6,9 +6,9 @@
//
// Description : Configuration file for TCPDF.
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2004-2014 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2004-2014 2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -23,7 +23,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
//============================================================+
@@ -114,7 +114,7 @@ define ('PDF_HEADER_TITLE', 'TCPDF Example');
/**
* Header description string.
*/
-define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
+define ('PDF_HEADER_STRING', "by2026 Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
/**
* Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
diff --git a/plugins/TCPDF/fonts/ae_fonts_2.0/README b/plugins/TCPDF/fonts/ae_fonts_2.0/README
index b517cc85..cb1e53a0 100644
--- a/plugins/TCPDF/fonts/ae_fonts_2.0/README
+++ b/plugins/TCPDF/fonts/ae_fonts_2.0/README
@@ -30,7 +30,7 @@ www.nongnu.org/freefont (Copyleft 2002, 2003, 2005 Free Software
Foundation).
These fonts are subject to the GNU GENERAL PUBLIC (GPL) LICENSE (Version 2).
-See COPYING for details or http://www.gnu.org/copyleft/gpl.html
+See COPYING for details or https://www.gnu.org/copyleft/gpl.html
As a special exception, if you create a document which uses this
font, and embed this font or unaltered portions of this font into the
diff --git a/plugins/TCPDF/fonts/freefont-20100919/COPYING b/plugins/TCPDF/fonts/freefont-20100919/COPYING
index 94a9ed02..ae0725d8 100644
--- a/plugins/TCPDF/fonts/freefont-20100919/COPYING
+++ b/plugins/TCPDF/fonts/freefont-20100919/COPYING
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see .
+ along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
-.
+.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
-.
+.
diff --git a/plugins/TCPDF/fonts/freefont-20100919/CREDITS b/plugins/TCPDF/fonts/freefont-20100919/CREDITS
index 0b69784b..e4a8b634 100644
--- a/plugins/TCPDF/fonts/freefont-20100919/CREDITS
+++ b/plugins/TCPDF/fonts/freefont-20100919/CREDITS
@@ -331,7 +331,7 @@ a set of TTF fonts for nine Indian scripts (Devanagari, Gujarati,
Telugu, Tamil, Malayalam, Kannada, Bengali, Oriya, and Gurumukhi)
under the GNU General Public License (GPL). You can download the fonts
from the Free Software Foundation of India WWW site
-(http://www.gnu.org.in/akruti-fonts/) or from the Akruti website.
+(https://www.gnu.org.in/akruti-fonts/) or from the Akruti website.
For any further information or assistance regarding these fonts,
please contact mssridhar AT vsnl.com.
diff --git a/plugins/TCPDF/fonts/freefont-20120503/COPYING b/plugins/TCPDF/fonts/freefont-20120503/COPYING
index 94a9ed02..ae0725d8 100644
--- a/plugins/TCPDF/fonts/freefont-20120503/COPYING
+++ b/plugins/TCPDF/fonts/freefont-20120503/COPYING
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see .
+ along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
-.
+.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
-.
+.
diff --git a/plugins/TCPDF/fonts/freefont-20120503/CREDITS b/plugins/TCPDF/fonts/freefont-20120503/CREDITS
index f4430ecf..bc078aac 100644
--- a/plugins/TCPDF/fonts/freefont-20120503/CREDITS
+++ b/plugins/TCPDF/fonts/freefont-20120503/CREDITS
@@ -336,7 +336,7 @@ a set of TTF fonts for nine Indian scripts (Devanagari, Gujarati,
Telugu, Tamil, Malayalam, Kannada, Bengali, Oriya, and Gurumukhi)
under the GNU General Public License (GPL). You can download the fonts
from the Free Software Foundation of India WWW site
-(http://www.gnu.org.in/akruti-fonts/) or from the Akruti website.
+(https://www.gnu.org.in/akruti-fonts/) or from the Akruti website.
For any further information or assistance regarding these fonts,
please contact mssridhar AT vsnl.com.
diff --git a/plugins/TCPDF/fonts/freefont-20120503/README b/plugins/TCPDF/fonts/freefont-20120503/README
index d83f4a94..daf679e6 100644
--- a/plugins/TCPDF/fonts/freefont-20120503/README
+++ b/plugins/TCPDF/fonts/freefont-20120503/README
@@ -30,7 +30,7 @@ FreeFont covers the following character ranges
* geometrical shapes, box drawing
* musical symbols, gaming symbols, miscellaneous symbols
etc.
-For more detail see
+For more detail see
Editing
-------
@@ -108,7 +108,7 @@ Further information
-------------------
Home page of GNU FreeFont:
- http://www.gnu.org/software/freefont/
+ https://www.gnu.org/software/freefont/
More information is at the main project page of Free UCS scalable fonts:
http://savannah.gnu.org/projects/freefont/
diff --git a/plugins/TCPDF/fonts/freefont-20120503/TROUBLESHOOTING b/plugins/TCPDF/fonts/freefont-20120503/TROUBLESHOOTING
index a7af2225..0639198a 100644
--- a/plugins/TCPDF/fonts/freefont-20120503/TROUBLESHOOTING
+++ b/plugins/TCPDF/fonts/freefont-20120503/TROUBLESHOOTING
@@ -27,7 +27,7 @@ a different font.
First double-check that the font in question really contains the character
in question. If you don't have font development software, this can be
tricky. In the case of FreeFont, you can check if a given character
-range is supported:
+range is supported:
Next double-check that your application (web browser, text editor, etc)
has indeed been properly instructed to use the font.
diff --git a/plugins/TCPDF/include/barcodes/datamatrix.php b/plugins/TCPDF/include/barcodes/datamatrix.php
index d1cc6d2a..77822fdf 100644
--- a/plugins/TCPDF/include/barcodes/datamatrix.php
+++ b/plugins/TCPDF/include/barcodes/datamatrix.php
@@ -5,9 +5,9 @@
// Begin : 2010-06-07
// Last Update : 2014-05-06
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2010-2014 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2010-2014 2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
diff --git a/plugins/TCPDF/include/barcodes/pdf417.php b/plugins/TCPDF/include/barcodes/pdf417.php
index bda24822..4c9a4b3d 100644
--- a/plugins/TCPDF/include/barcodes/pdf417.php
+++ b/plugins/TCPDF/include/barcodes/pdf417.php
@@ -5,9 +5,9 @@
// Begin : 2010-06-03
// Last Update : 2014-04-25
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2010-2013 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2010-2013 2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
diff --git a/plugins/TCPDF/include/barcodes/qrcode.php b/plugins/TCPDF/include/barcodes/qrcode.php
index 1a64a4cb..72cbf15e 100644
--- a/plugins/TCPDF/include/barcodes/qrcode.php
+++ b/plugins/TCPDF/include/barcodes/qrcode.php
@@ -5,9 +5,9 @@
// Begin : 2010-03-22
// Last Update : 2012-07-25
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2010-2012 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2010-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
diff --git a/plugins/TCPDF/include/tcpdf_colors.php b/plugins/TCPDF/include/tcpdf_colors.php
index 8c4529af..fc5aeb08 100644
--- a/plugins/TCPDF/include/tcpdf_colors.php
+++ b/plugins/TCPDF/include/tcpdf_colors.php
@@ -5,9 +5,9 @@
// Begin : 2002-04-09
// Last Update : 2014-04-25
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2002-2013 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2002-2013 2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
diff --git a/plugins/TCPDF/include/tcpdf_filters.php b/plugins/TCPDF/include/tcpdf_filters.php
index 3009cff7..96be66f5 100644
--- a/plugins/TCPDF/include/tcpdf_filters.php
+++ b/plugins/TCPDF/include/tcpdf_filters.php
@@ -5,9 +5,9 @@
// Begin : 2011-05-23
// Last Update : 2014-04-25
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2011-2013 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2011-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
diff --git a/plugins/TCPDF/include/tcpdf_font_data.php b/plugins/TCPDF/include/tcpdf_font_data.php
index 974e72ec..d7eae2f3 100644
--- a/plugins/TCPDF/include/tcpdf_font_data.php
+++ b/plugins/TCPDF/include/tcpdf_font_data.php
@@ -5,9 +5,9 @@
// Begin : 2008-01-01
// Last Update : 2013-04-01
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2008-2013 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2008-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
diff --git a/plugins/TCPDF/include/tcpdf_fonts.php b/plugins/TCPDF/include/tcpdf_fonts.php
index fbe7009c..1fc24f5a 100644
--- a/plugins/TCPDF/include/tcpdf_fonts.php
+++ b/plugins/TCPDF/include/tcpdf_fonts.php
@@ -5,9 +5,9 @@
// Begin : 2008-01-01
// Last Update : 2024-12-23
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2008-2025 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2008-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
@@ -1384,7 +1384,7 @@ class TCPDF_FONTS {
}
// set checkSumAdjustment on head table
$checkSumAdjustment = 0xB1B0AFBA - self::_getTTFtableChecksum($font, strlen($font));
- $font = substr($font, 0, $table['head']['offset'] + $offset + 8).pack('N', $checkSumAdjustment).substr($font, $table['head']['offset'] + $offset + 12);
+ $font = substr($font, 0, $table['head']['offset'] + $offset + 4).pack('N', $checkSumAdjustment).substr($font, $table['head']['offset'] + $offset + 8);
return $font;
}
diff --git a/plugins/TCPDF/include/tcpdf_images.php b/plugins/TCPDF/include/tcpdf_images.php
index 6f2860c6..2d8b96e6 100644
--- a/plugins/TCPDF/include/tcpdf_images.php
+++ b/plugins/TCPDF/include/tcpdf_images.php
@@ -5,9 +5,9 @@
// Begin : 2002-08-03
// Last Update : 2014-11-15
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2002-2014 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2002-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -126,7 +126,9 @@ class TCPDF_IMAGES {
// create temporary PNG image
imagepng($image, $tempfile);
// remove image from memory
- imagedestroy($image);
+ if (PHP_VERSION_ID < 80000) {
+ imagedestroy($image);
+ }
// get PNG image data
$retvars = self::_parsepng($tempfile);
// tidy up by removing temporary image
@@ -145,7 +147,9 @@ class TCPDF_IMAGES {
*/
public static function _toJPEG($image, $quality, $tempfile) {
imagejpeg($image, $tempfile, $quality);
- imagedestroy($image);
+ if (PHP_VERSION_ID < 80000) {
+ imagedestroy($image);
+ }
$retvars = self::_parsejpeg($tempfile);
// tidy up by removing temporary image
unlink($tempfile);
@@ -270,12 +274,12 @@ class TCPDF_IMAGES {
return 'pngalpha';
}
if (ord(fread($f, 1)) != 0) {
- // Unknown compression method
+ // Unknownn compression method
fclose($f);
return false;
}
if (ord(fread($f, 1)) != 0) {
- // Unknown filter method
+ // Unknownn filter method
fclose($f);
return false;
}
@@ -327,7 +331,7 @@ class TCPDF_IMAGES {
}
// get compression method
if (ord(fread($f, 1)) != 0) {
- // Unknown filter method
+ // Unknownn filter method
fclose($f);
return false;
}
diff --git a/plugins/TCPDF/include/tcpdf_static.php b/plugins/TCPDF/include/tcpdf_static.php
index 296e04dd..dc157263 100644
--- a/plugins/TCPDF/include/tcpdf_static.php
+++ b/plugins/TCPDF/include/tcpdf_static.php
@@ -5,9 +5,9 @@
// Begin : 2002-08-03
// Last Update : 2024-12-23
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2002-2025 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2002-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version.
* @private static
*/
- private static $tcpdf_version = '6.10.1';
+ private static $tcpdf_version = '6.11.2';
/**
* String alias for total number of pages.
@@ -492,7 +492,7 @@ class TCPDF_STATIC {
* @param string $last_enc_key_c Reference to last RC4 computed key.
* @return string encrypted text
* @since 2.0.000 (2008-01-02)
- * @author Klemen Vodopivec, Nicola Asuni
+ * @author Klemen Vodopivec,2026 Nicola Asuni
* @public static
*/
public static function _RC4($key, $text, &$last_enc_key, &$last_enc_key_c) {
@@ -1863,7 +1863,9 @@ class TCPDF_STATIC {
curl_setopt_array($crs, $curlopts);
curl_exec($crs);
$code = curl_getinfo($crs, CURLINFO_HTTP_CODE);
- curl_close($crs);
+ if (PHP_VERSION_ID < 80000) {
+ curl_close($crs);
+ }
return ($code == 200);
}
@@ -1995,7 +1997,9 @@ class TCPDF_STATIC {
$curlopts[CURLOPT_URL] = $url;
curl_setopt_array($crs, $curlopts);
$ret = curl_exec($crs);
- curl_close($crs);
+ if (PHP_VERSION_ID < 80000) {
+ curl_close($crs);
+ }
if ($ret !== false) {
return $ret;
}
diff --git a/plugins/TCPDF/tcpdf.php b/plugins/TCPDF/tcpdf.php
index 2cbbc4d7..cffe210d 100644
--- a/plugins/TCPDF/tcpdf.php
+++ b/plugins/TCPDF/tcpdf.php
@@ -1,13 +1,13 @@
* @package com.tecnick.tcpdf
* @author Nicola Asuni
- * @version 6.10.1
+ * @version 6.11.2
*/
// TCPDF configuration
@@ -128,7 +128,7 @@ require_once(dirname(__FILE__).'/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.
* @package com.tecnick.tcpdf
* @brief PHP class for generating PDF documents without requiring external extensions.
- * @version 6.10.1
+ * @version 6.11.2
* @author Nicola Asuni - info@tecnick.com
* @IgnoreAnnotation("protected")
* @IgnoreAnnotation("public")
@@ -1131,7 +1131,7 @@ class TCPDF {
protected $opencell = true;
/**
- * Array of files to embedd.
+ * Array of files to embed.
* @protected
* @since 4.4.000 (2008-12-07)
*/
@@ -2907,12 +2907,7 @@ class TCPDF {
* @since 1.4
*/
public function setCompression($compress=true) {
- $this->compress = false;
- if (function_exists('gzcompress')) {
- if ($compress) {
- $this->compress = true;
- }
- }
+ $this->compress = ($compress && function_exists('gzcompress'));
}
/**
@@ -4257,7 +4252,7 @@ class TCPDF {
* @param string $style Font style. Possible values are (case insensitive):- empty string: regular (default)
- B: bold
- I: italic
- BI or IB: bold italic
* @param string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
* @return array|false array containing the font data, or false in case of error.
- * @param mixed $subset if true embedd only a subset of the font (stores only the information related to the used characters); if false embedd full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
+ * @param mixed $subset if true embed only a subset of the font (stores only the information related to the used characters); if false embed full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
* @public
* @since 1.5
* @see SetFont(), setFontSubsetting()
@@ -4437,7 +4432,7 @@ class TCPDF {
$this->Error('All fonts must be embedded in PDF/A mode!');
}
} else {
- $this->Error('Unknow font type: '.$type.'');
+ $this->Error('Unknown font type: '.$type.'');
}
// set name if unset
if (empty($name)) {
@@ -4527,7 +4522,7 @@ class TCPDF {
* @param string $style Font style. Possible values are (case insensitive):- empty string: regular
- B: bold
- I: italic
- U: underline
- D: line through
- O: overline
or any combination. The default value is regular. Bold and italic styles do not apply to Symbol and ZapfDingbats basic fonts or other fonts when not defined.
* @param float|null $size Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12
* @param string $fontfile The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
- * @param mixed $subset if true embedd only a subset of the font (stores only the information related to the used characters); if false embedd full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
+ * @param mixed $subset if true embed only a subset of the font (stores only the information related to the used characters); if false embed full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
* @param boolean $out if true output the font size command, otherwise only set the font properties.
* @author Nicola Asuni
* @public
@@ -6268,7 +6263,7 @@ class TCPDF {
* @param array|null $cellpadding Internal cell padding, if empty uses default cell padding.
* @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:- 0: no border (default)
- 1: frame
or a string containing some or all of the following characters (in any order):- L: left
- T: top
- R: right
- B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
* @return float Return the minimal height needed for multicell method for printing the $txt param.
- * @author Alexander Escalona Fern\E1ndez, Nicola Asuni
+ * @author Alexander Escalona Fern\E1ndez,2026 Nicola Asuni
* @public
* @since 4.5.011
*/
@@ -6464,7 +6459,7 @@ class TCPDF {
// replacement for SHY character (minus symbol)
$shy_replacement = 45;
$shy_replacement_char = TCPDF_FONTS::unichr($shy_replacement, $this->isunicode);
- // widht for SHY replacement
+ // width for SHY replacement
$shy_replacement_width = $this->GetCharWidth($shy_replacement);
// page width
$pw = $w = $this->w - $this->lMargin - $this->rMargin;
@@ -7437,12 +7432,16 @@ class TCPDF {
}
}
imagepng($imgalpha, $tempfile_alpha);
- imagedestroy($imgalpha);
+ if (PHP_VERSION_ID < 80000) {
+ imagedestroy($imgalpha);
+ }
// extract image without alpha channel
$imgplain = imagecreatetruecolor($wpx, $hpx);
imagecopy($imgplain, $img, 0, 0, 0, 0, $wpx, $hpx);
imagepng($imgplain, $tempfile_plain);
- imagedestroy($imgplain);
+ if (PHP_VERSION_ID < 80000) {
+ imagedestroy($imgplain);
+ }
$parsed = true;
} catch (Exception $e) {
// GD fails
@@ -7884,7 +7883,7 @@ class TCPDF {
* @since 4.5.016 (2009-02-24)
*/
public function _destroy($destroyall=false, $preserve_objcopy=false) {
- if (isset(self::$cleaned_ids[$this->file_id])) {
+ if (isset($this->file_id) && isset(self::$cleaned_ids[$this->file_id])) {
$destroyall = false;
}
if ($destroyall AND !$preserve_objcopy && isset($this->file_id)) {
@@ -8932,7 +8931,7 @@ class TCPDF {
$this->_out('<< /Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$diff.'] >>'."\n".'endobj');
}
foreach ($this->FontFiles as $file => $info) {
- // search and get font file to embedd
+ // search and get font file to embed
$fontfile = TCPDF_FONTS::getFontFullPath($file, $info['fontdir']);
if (!TCPDF_STATIC::empty_string($fontfile)) {
$font = file_get_contents($fontfile);
@@ -9147,9 +9146,9 @@ class TCPDF {
$this->_newobj();
// Embed CIDToGIDMap
// A specification of the mapping from CIDs to glyph indices
- // search and get CTG font file to embedd
+ // search and get CTG font file to embed
$ctgfile = strtolower($font['ctg']);
- // search and get ctg font file to embedd
+ // search and get ctg font file to embed
$fontfile = TCPDF_FONTS::getFontFullPath($ctgfile, $fontdir);
if (TCPDF_STATIC::empty_string($fontfile)) {
$this->Error('Font file not found: '.$ctgfile);
@@ -9174,7 +9173,7 @@ class TCPDF {
* A Type 0 CIDFont contains glyph descriptions based on the Adobe Type 1 font format
* @param array $font font data
* @protected
- * @author Andrew Whitehead, Nicola Asuni, Yukihiro Nakadaira
+ * @author Andrew Whitehead,2026 Nicola Asuni, Yukihiro Nakadaira
* @since 3.2.000 (2008-06-23)
*/
protected function _putcidfont0($font) {
@@ -12328,7 +12327,7 @@ class TCPDF {
* @param int $head_style (0 = draw only arrowhead arms, 1 = draw closed arrowhead, but no fill, 2 = closed and filled arrowhead, 3 = filled arrowhead)
* @param float $arm_size length of arrowhead arms
* @param int $arm_angle angle between an arm and the shaft
- * @author Piotr Galecki, Nicola Asuni, Andy Meier
+ * @author Piotr Galecki,2026 Nicola Asuni, Andy Meier
* @since 4.6.018 (2009-07-10)
*/
public function Arrow($x0, $y0, $x1, $y1, $head_style=0, $arm_size=5, $arm_angle=15) {
@@ -12393,7 +12392,7 @@ class TCPDF {
* @param float $x X position in user units of the destiantion on the selected page (default = -1 = current position;).
* @return string|false Stripped named destination identifier or false in case of error.
* @public
- * @author Christian Deligant, Nicola Asuni
+ * @author Christian Deligant,2026 Nicola Asuni
* @since 5.9.097 (2011-06-23)
*/
public function setDestination($name, $y=-1, $page='', $x=-1) {
@@ -12446,7 +12445,7 @@ class TCPDF {
/**
* Insert Named Destinations.
* @protected
- * @author Johannes G\FCntert, Nicola Asuni
+ * @author Johannes G\FCntert,2026 Nicola Asuni
* @since 5.9.098 (2011-06-23)
*/
protected function _putdests() {
@@ -12555,7 +12554,7 @@ class TCPDF {
/**
* Create a bookmark PDF string.
* @protected
- * @author Olivier Plathey, Nicola Asuni
+ * @author Olivier Plathey,2026 Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
protected function _putbookmarks() {
@@ -12681,7 +12680,7 @@ class TCPDF {
* Adds a javascript
* @param string $script Javascript code
* @public
- * @author Johannes G\FCntert, Nicola Asuni
+ * @author Johannes G\FCntert,2026 Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
public function IncludeJS($script) {
@@ -12710,7 +12709,7 @@ class TCPDF {
/**
* Create a javascript PDF string.
* @protected
- * @author Johannes G\FCntert, Nicola Asuni
+ * @author Johannes G\FCntert,2026 Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
protected function _putjavascript() {
@@ -12768,7 +12767,7 @@ class TCPDF {
* @param int $h height
* @param array $prop javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
* @protected
- * @author Denis Van Nuffelen, Nicola Asuni
+ * @author Denis Van Nuffelen,2026 Nicola Asuni
* @since 2.1.002 (2008-02-12)
*/
protected function _addfield($type, $name, $x, $y, $w, $h, $prop) {
@@ -14501,7 +14500,7 @@ class TCPDF {
* @param array $col1 first color (Grayscale, RGB or CMYK components).
* @param array $col2 second color (Grayscale, RGB or CMYK components).
* @param array $coords array of the form (x1, y1, x2, y2) which defines the gradient vector (see linear_gradient_coords.jpg). The default value is from left to right (x1=0, y1=0, x2=1, y2=0).
- * @author Andreas W\FCrmser, Nicola Asuni
+ * @author Andreas W\FCrmser,2026 Nicola Asuni
* @since 3.1.000 (2008-06-09)
* @public
*/
@@ -14519,7 +14518,7 @@ class TCPDF {
* @param array $col1 first color (Grayscale, RGB or CMYK components).
* @param array $col2 second color (Grayscale, RGB or CMYK components).
* @param array $coords array of the form (fx, fy, cx, cy, r) where (fx, fy) is the starting point of the gradient with color1, (cx, cy) is the center of the circle with color2, and r is the radius of the circle (see radial_gradient_coords.jpg). (fx, fy) should be inside the circle, otherwise some areas will not be defined.
- * @author Andreas W\FCrmser, Nicola Asuni
+ * @author Andreas W\FCrmser,2026 Nicola Asuni
* @since 3.1.000 (2008-06-09)
* @public
*/
@@ -14542,7 +14541,7 @@ class TCPDF {
* @param array $coords_min minimum value used by the coordinates. If a coordinate's value is smaller than this it will be cut to coords_min. default: 0
* @param array $coords_max maximum value used by the coordinates. If a coordinate's value is greater than this it will be cut to coords_max. default: 1
* @param boolean $antialias A flag indicating whether to filter the shading function to prevent aliasing artifacts.
- * @author Andreas W\FCrmser, Nicola Asuni
+ * @author Andreas W\FCrmser,2026 Nicola Asuni
* @since 3.1.000 (2008-06-09)
* @public
*/
@@ -14634,7 +14633,7 @@ class TCPDF {
* @param float $y ordinate of the top left corner of the rectangle.
* @param float $w width of the rectangle.
* @param float $h height of the rectangle.
- * @author Andreas W\FCrmser, Nicola Asuni
+ * @author Andreas W\FCrmser,2026 Nicola Asuni
* @since 3.1.000 (2008-06-09)
* @protected
*/
@@ -14960,7 +14959,7 @@ class TCPDF {
* @param string $style Style of rendering. See the getPathPaintOperator() function for more information.
* @param float $cw indicates whether to go clockwise (default: true).
* @param float $o origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock). Default: 90.
- * @author Maxime Delorme, Nicola Asuni
+ * @author Maxime Delorme,2026 Nicola Asuni
* @since 3.1.000 (2008-06-09)
* @public
*/
@@ -14981,7 +14980,7 @@ class TCPDF {
* @param float $cw indicates whether to go clockwise.
* @param float $o origin of angles (0 for 3 o'clock, 90 for noon, 180 for 9 o'clock, 270 for 6 o'clock).
* @param integer $nc Number of curves used to draw a 90 degrees portion of arc.
- * @author Maxime Delorme, Nicola Asuni
+ * @author Maxime Delorme,2026 Nicola Asuni
* @since 3.1.000 (2008-06-09)
* @public
*/
@@ -15025,7 +15024,7 @@ class TCPDF {
* @param mixed $border Indicates if borders must be drawn around the cell. The value can be a number:- 0: no border (default)
- 1: frame
or a string containing some or all of the following characters (in any order):- L: left
- T: top
- R: right
- B: bottom
or an array of line styles for each border group - for example: array('LTRB' => array('width' => 2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)))
* @param boolean $fitonpage if true the image is resized to not exceed page dimensions.
* @param boolean $fixoutvals if true remove values outside the bounding box.
- * @author Valentin Schmidt, Nicola Asuni
+ * @author Valentin Schmidt,2026 Nicola Asuni
* @since 3.1.000 (2008-06-09)
* @public
*/
@@ -16449,7 +16448,7 @@ class TCPDF {
* @since 3.2.000 (2008-06-20)
*/
protected function getHtmlDomArray($html) {
- // set inheritable properties fot the first void element
+ // set inheritable properties for the first void element
// possible inheritable properties are: azimuth, border-collapse, border-spacing, caption-side, color, cursor, direction, empty-cells, font, font-family, font-stretch, font-size, font-size-adjust, font-style, font-variant, font-weight, letter-spacing, line-height, list-style, list-style-image, list-style-position, list-style-type, orphans, page, page-break-inside, quotes, speak, speak-header, text-align, text-indent, text-transform, volume, white-space, widows, word-spacing
$dom = array(
array(
@@ -23726,9 +23725,11 @@ class TCPDF {
}
$params = array();
if (isset($val[2])) {
- // get curve parameters
- preg_match_all('/-?\d*\.?\d+/', trim($val[2]), $matches);
- $rawparams = $matches[0];
+ // get curve parameters, see https://github.com/tecnickcom/TCPDF/issues/767
+ $rawparams = preg_split('/([\,\s]+)/si', trim($val[2]));
+ $rawparams = array_filter($rawparams, function($p) {
+ return trim($p) != '';
+ });
$params = array();
foreach ($rawparams as $ck => $cp) {
$params[$ck] = $this->getHTMLUnitToUnits($cp, 0, $this->svgunit, false);
@@ -24425,6 +24426,7 @@ class TCPDF {
}
$this->StopTransform();
}
+
break;
}
case 'ellipse': {
diff --git a/plugins/TCPDF/tcpdf_autoconfig.php b/plugins/TCPDF/tcpdf_autoconfig.php
index d31ee87e..dd1404e0 100644
--- a/plugins/TCPDF/tcpdf_autoconfig.php
+++ b/plugins/TCPDF/tcpdf_autoconfig.php
@@ -5,9 +5,9 @@
// Begin : 2013-05-16
// Last Update : 2025-04-18
// Authors : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2011-2025 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2011-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -154,7 +154,7 @@ if (!defined('PDF_HEADER_TITLE')) {
}
if (!defined('PDF_HEADER_STRING')) {
- define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
+ define ('PDF_HEADER_STRING', "by2026 Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
}
if (!defined('PDF_UNIT')) {
@@ -206,7 +206,7 @@ if (!defined('PDF_FONT_MONOSPACED')) {
}
if (!defined('PDF_IMAGE_SCALE_RATIO')) {
- define ('PDF_IMAGE_SCALE_RATIO', 1.25);
+ define ('PDF_IMAGE_SCALE_RATIO', 96/72);
}
if (!defined('HEAD_MAGNIFICATION')) {
diff --git a/plugins/TCPDF/tcpdf_barcodes_1d.php b/plugins/TCPDF/tcpdf_barcodes_1d.php
index 45d35616..34cb6da1 100644
--- a/plugins/TCPDF/tcpdf_barcodes_1d.php
+++ b/plugins/TCPDF/tcpdf_barcodes_1d.php
@@ -5,9 +5,9 @@
// Begin : 2008-06-09
// Last Update : 2014-10-20
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2008-2014 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2008-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
@@ -234,7 +234,9 @@ class TCPDFBarcode {
ob_start();
imagepng($png);
$imagedata = ob_get_clean();
- imagedestroy($png);
+ if (PHP_VERSION_ID < 80000) {
+ imagedestroy($png);
+ }
return $imagedata;
}
}
diff --git a/plugins/TCPDF/tcpdf_barcodes_2d.php b/plugins/TCPDF/tcpdf_barcodes_2d.php
index 730361bd..0e116365 100644
--- a/plugins/TCPDF/tcpdf_barcodes_2d.php
+++ b/plugins/TCPDF/tcpdf_barcodes_2d.php
@@ -5,9 +5,9 @@
// Begin : 2009-04-07
// Last Update : 2014-05-20
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2009-2014 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2009-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
@@ -22,7 +22,7 @@
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
-// along with TCPDF. If not, see .
+// along with TCPDF. If not, see .
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
@@ -238,7 +238,9 @@ class TCPDF2DBarcode {
ob_start();
imagepng($png);
$imagedata = ob_get_clean();
- imagedestroy($png);
+ if (PHP_VERSION_ID < 80000) {
+ imagedestroy($png);
+ }
return $imagedata;
}
}
diff --git a/plugins/TCPDF/tools/tcpdf_addfont.php b/plugins/TCPDF/tools/tcpdf_addfont.php
index 2937c756..e1a2b32e 100755
--- a/plugins/TCPDF/tools/tcpdf_addfont.php
+++ b/plugins/TCPDF/tools/tcpdf_addfont.php
@@ -7,9 +7,9 @@
// Last Update : 2013-08-05
// Authors : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// Remi Collet
-// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
+// License : GNU-LGPL v3 (https://www.gnu.org/copyleft/lesser.html)
// -------------------------------------------------------------------
-// Copyright (C) 2011-2013 Nicola Asuni - Tecnick.com LTD
+// Copyright (C) 2011-2026 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//