914 Commits

Author SHA1 Message Date
nicolaasuni
8115ff636a Fix SPDX license ID (#591) and update min PHP version to 5.5.0 2024-03-25 23:50:00 +00:00
nicolaasuni
2fb1c01bc3 Update workflow 2022-12-17 10:46:01 +00:00
nicolaasuni
e3cffc9bcb Bump version 6.6.2 2022-12-17 10:28:59 +00:00
nicolaasuni
b133c47e93 Fix syntax error 2022-12-17 10:26:06 +00:00
nicolaasuni
e3d45a6853 Ensure return type is always array 2022-12-17 10:19:28 +00:00
Philippe Jausions
8872a9cdae
Add ability to run tests on various operating systems (#566)
Co-authored-by: Philippe Jausions <Philippe.Jausions@11abacus.com>
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-17 10:14:35 +00:00
Bart Driessen
ef356f0bc7
Avoid a deprecated error from PHP8.1 (#573)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
Co-authored-by: William Desportes <williamdes@wdes.fr>
2022-12-17 09:59:09 +00:00
nicolaasuni
a336b531f6 Bump version 6.6.1 2022-12-12 14:42:28 +00:00
Michael Voříšek
37aa6eeb73
Add PHPStan and fix level 1 errors (#307)
* Add PHPStan level 1

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-12 14:38:07 +00:00
nicolaasuni
154bba45ff Bump version 6.6.0 2022-12-06 09:28:13 +00:00
Paul Holden
80dbfa867c
Multi-byte character support for filename during output (#561). (#562)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 09:22:10 +00:00
François-Xavier de Guillebon
e8a76e1559
Fix garbage collection (#509)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 09:00:58 +00:00
Bayram Arslan
ca70b94577
FIX: PDF417 corrupt output problem, solution set bcmath scale parameter to zero (#534)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 08:55:12 +00:00
Niklas
29c3748b5f
Fix TypeError: count() in PHP8 (#556)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 08:44:45 +00:00
Dimitri Mikropoulos
6da8a0f8b6
Fix-getHTMLFontUnits (#547)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 08:39:18 +00:00
Remi Collet
59c78266df
improved embedded image in HTML allowing src="data:..." format (#552)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 08:28:15 +00:00
atomiix
d7da13a0c0
Fix image abscissa when in RTL (#510)
Co-authored-by: William Desportes <williamdes@wdes.fr>
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 08:23:40 +00:00
Julien Maumené
f794192a90
fix: php 8.1 notices (#548)
PHP Deprecated:  Implicit conversion from float 31.5 to int loses precision in /var/www/html/vendor/tecnickcom/tcpdf/include/barcodes/qrcode.php on line 891
PHP Deprecated:  Implicit conversion from float 3.5 to int loses precision in /var/www/html/vendor/tecnickcom/tcpdf/include/barcodes/qrcode.php on line 895

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 08:13:09 +00:00
Дилян Палаузов
d3178394ff
Optimize PNG files (#563)
by calling
  for i in `find -name '*.png'`; do optipng -o7 -zm9 $i; done

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 07:48:43 +00:00
Philippe Jausions
0df767ffad
Update documentation for a known issue. (#569)
Closes #568

Co-authored-by: Philippe Jausions <Philippe.Jausions@11abacus.com>
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-12-06 07:44:38 +00:00
Simone Pavlovich
288a7cdc4c
Fix for PHP 8.1 (#571)
* Fix for PHP 8.1

If $style is empty, PHP is throwing a warning.You need to set the default as empty string if $style is not set.

* Apply suggestions from code review

Co-authored-by: William Desportes <williamdes@wdes.fr>
2022-12-06 07:39:13 +00:00
nicolaasuni
cc54c15036 Bump version 6.5.0 2022-08-12 08:50:54 +01:00
nicolaasuni
1fb8b6a6c7 Bump version 2022-08-12 08:49:40 +01:00
Richard
5a04f6e0e8
encodeUrlQuery takes into account the port (#493)
In order to take into account the port in the URLs (related to PR #148).

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:44:18 +01:00
Indrek Haav
ff83da807a
Fixing undefined offset error in writeHTML() when last DOM element has display:none (#496)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:37:37 +01:00
Markus Ramšak
a089447257
correct some typehints (#495)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:37:10 +01:00
Joost de Bruijn
1ecad8827a
fix: php 8.1 notices (#481)
* fix: php 8.1 notices

* fix: php5 compatible code

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:30:12 +01:00
Andris Krauze
633b42a099
Fixed: null check for PHP 8.1 (#476)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:29:34 +01:00
Stephen Sigwart
5596537f8f
Fix Infinite Loop in Multicell with Auto Page Breaks Off (#473)
The updated places that used `AcceptPageBreak` assumed that a page break was added and increased X by the margin.  However, if the break wasn't added, it would put the text further to the right to the point that the width because so small or negative and no characters fit, causing an infinite loop.

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:29:02 +01:00
oleibman
56e5dfdf23
GetCssBorderStyle Has Problem When !important Is Specified (#467)
* GetCssBorderStyle Has Problem When !important Is Specified

This is, in particular, a problem for PhpSpreadsheet. See https://github.com/PHPOffice/PhpSpreadsheet/issues/1164. TCPDF thinks that there can be 0, 1, 2, or 3 components to shorthand border style, but there can be more, e.g. !important. Logic is rearranged to allow for more than 3. A new example file is added to demonstrate that the fix works correctly.

* Improved Example

Better code coverage.

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:25:26 +01:00
SonOfHarris
e42b70cb79
Support Apache 2.4 directives in htaccess file (#530)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2022-08-12 08:14:00 +01:00
Cédric Anne
b5cbcc255c
Remove examples from dist package (#542)
* Remove examples from dist package

* Update composer.json

* Update .gitattributes
2022-08-12 08:10:45 +01:00
nicolaasuni
42cd0f9786 Bump version 6.4.4 2021-12-31 08:39:24 +00:00
William Desportes
960e7d563d
PHP 8.1 fixes and PHP 5.x CI fix (#463)
* Fix call signatures on example 12 for PHP 8.1 strpos null errors

* Fix #401 - PHP 8.1 casts to int - getGDgamma - CoonsPatchMesh

Fixes: tecnickcom/TCPDF#401

* PHP 8.1 - cast in _RC4 before sending to str_repeat

* Enable back extensions on PHP 5.{3,4,5}

* Improve the test script to allow testing other PHP versions locally

* Fix typo on "parametrs" -> "parameters"

* Reduce possible side effects with the OS

* Fix #461 - fix barcodes handling using false, PHP 8.1 deprecation

Fixes: tecnickcom/TCPDF#461

* Fix #401 - PHP 8.1 casts to int - CoonsPatchMesh

Fixes: tecnickcom/TCPDF#401

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-31 08:34:37 +00:00
Henrik Gemal
a5b2fdbbf1
lowercase s in function names (#462)
* lowercase s in function names

more fix for #419

* Update tcpdf.php
2021-12-30 13:51:12 +00:00
nicolaasuni
3cfc830d70 Bump version 6.4.3 2021-12-28 12:31:24 +00:00
Zdeněk Devátý
5a2ac9c26a
Fix MultiCell PHPDoc typehint (#407)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:10:54 +00:00
Simon Stücher
8a1907437d
Fix type hint for \TCPDF_STATIC::_freadint (#414)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:09:50 +00:00
William Desportes
a9b327d417
Footer and Header font phpdoc fixes + constructor $pdfa phpdoc fix + setHeaderData lw param fix (#402)
* Footer and Header font signature fixes

* Fix constructor parameter

* More signature fixes

* Fix #413 - set setHeaderData lw param to int

* Typo fix

* Use better phpdocs for {header,footer}_text_color and {header,footer}_line_color

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:09:03 +00:00
Nikita Pozdeev
61d6386639
fix text-annotation state options (#412)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:07:45 +00:00
russellmann
66df6587ac
fix - Named links have been broken. This fixes. (#415)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:06:55 +00:00
Sirik Koster
d1db9ba8ff
Update tcpdf.php (#450)
Fixed type in comment for $lw header image logo width in mm

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:05:15 +00:00
Henrik Gemal
e153e81261
change Set to set. Fixes #419 (#421)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:04:39 +00:00
William Desportes
7519e322ec
Fix failing tests and failing tests not marking exit code as 1 (#426)
* Fix failing tests and failing tests not marking exit code as 1

* Make output safe of binary content and fix json extension depending tests

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:02:54 +00:00
Vincent Langlet
df4a8e6f96
Fix phpdoc and prefer null as default value (#444)
* Fix phpdoc and prefer null as default value

Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 12:00:30 +00:00
William Desportes
8b63af1b4d
Run on PHP 8.1 normally and add nightly PHP as allowed to fail (#452)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 11:57:34 +00:00
SuperVirus
cd683e3d83
Fix AES128 encryption if the OpenSSL extension is installed (#453)
* Fix AES128 encryption if the OpenSSL extension is installed

* Simplified code

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 11:56:41 +00:00
mhpcc
9ce48756af
explicitly cast values to int for imagesetpixel (#460)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 11:54:49 +00:00
Fran Moreno
f5b45b99f6
Fix cell_height_ratio type (#405)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-12-28 11:53:02 +00:00
William Desportes
f59c2b8449
Update CHANGELOG (#400) 2021-12-28 11:52:37 +00:00