893 Commits

Author SHA1 Message Date
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
Jay Davis
f1a29a1a73
Leave &NBSP; lowercase when using text-transform (#403)
When using text-transform: uppercase, convert "&NBSP;" back to lowercase "&nbsp;" so that it is recognized as a space by Adobe Acrobat rather than printing out "&NBSP;"
2021-12-28 11:47:59 +00:00
nicolaasuni
172540dcbf Bump version 6.4.2 2021-07-20 15:43:20 +01:00
Michael Voříšek
c4c3e054f3
Remove "U" modifier from regexes (#359)
* Revert "Optimized regular expression (#268)"

This reverts commit f0e42daeaef04c89c903d3c270edc580024221ea.

* do not use U regex modifier

* fix #267
2021-07-20 15:25:58 +01:00
Simon Stücher
bf02c1cb62
Fix type hints (#399)
* Fix type hints

* More accurate type hint

Co-authored-by: William Desportes <williamdes@wdes.fr>

* document void return

* document void return

* Update include/tcpdf_fonts.php

Co-authored-by: William Desportes <williamdes@wdes.fr>

* Fix type hints

Co-authored-by: William Desportes <williamdes@wdes.fr>
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-20 15:25:22 +01:00
Markus Staab
5d48d1a0f0
removed status.txt from font directories, because of filesize (#388)
* Delete status.txt

* Delete status.txt

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-20 15:24:11 +01:00
Maurício Meneghini Fauth
ea9e1c4145
Fix implicit conversion from float to int (#387)
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-20 15:23:33 +01:00
William Desportes
150e756428
Add a new example with composer & fix CI (#356)
* Add a new example with composer

* Fix PHP 5.x failing testsuite setup

* Update .gitignore

Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-10 08:32:18 +01:00
Chris Seufert
5bc5d01ae0
Allows transparency in PDF/A-2 and PDF/A-3 (#386) 2021-07-10 08:19:23 +01:00
Michael Voříšek
da72d4964d
Normalize composer.json CS (#360)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-10 08:11:07 +01:00
Matthias Vogel
366b550a96
fix docblock annotation typo (#365)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-10 08:09:53 +01:00
zymurgic
7ecf638b13
fix warnings for undefined tags for $lineStyle (#378)
Under PHP8, this generated warnings. If a tag is not set, it would throw a warning. Because the downstream usage of the $lineStyle can handle undefined entries, it's safe to leave them unset here.

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-10 08:06:38 +01:00
Paul Holden
7f650ee925
Increase internal version number to 6.4.1. (#366)
Fixes #357.

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-10 08:05:58 +01:00
sakarikl
c58fe0c63a
fix color being filled to type 0 with php8 (#389) 2021-07-10 08:02:30 +01:00
Nagy Imre
2dfe16d413
Update tcpdf.php version info (#390)
Update tcpdf.php version info

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-07-10 07:45:09 +01:00
Niklas
6cb2475ef4
Fix docblock spelliong error (#392) 2021-07-10 07:43:47 +01:00
Martin Vobruba
cf8a66c8ec
Remove pointless assignments (#361) 2021-04-06 16:35:45 +01:00
William Desportes
c979d00f60
PHP error fixes and final phpdoc fixes (#348)
* Fix a PHP array offset error

* Fix PHP 8.1 type error with TCPDF_STATIC::pregSplit on preg_split

* More phpdoc blocks fixes

* Add CHANGELOG entries

* Update file descriptions for barcode examples

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-04-02 12:45:14 +01:00
William Desportes
989a00f330
Add a CI for docs and running examples + (generating coverage !!) (#349)
* Add lint docs workflow and a testing workflow

* Add scripts to run tests on examples

* Add Doctum config

* Adjust examples source detection

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-04-02 12:43:30 +01:00
Thorsten Rinne
be4514d896
fix: corrected year of release dates (#351) 2021-04-02 12:39:35 +01:00
William Desportes
206a131d72
Drop a PHP 4 polyfill and add a .gitattributes file (#346)
* Drop PHP 4 polyfill for str_split

* Add a .gitattributes file

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-28 11:59:03 +01:00
William Desportes
4f1d629d24
Fix all phpdoc blocks (#345)
* Add a @since on a function

* Refresh phpdoc blocks

Using `@param (\$[a-zA-Z0-9_]+)\s\(([a-z]+)\)`

* Fix phpdoc blocks

* Fix typos and phpdoc mistakes

* More phpdoc block fixes

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-28 11:55:50 +01:00