681 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Chris Seufert
5bc5d01ae0
Allows transparency in PDF/A-2 and PDF/A-3 (#386) 2021-07-10 08:19:23 +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
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
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
Nicola Asuni
0fb31c9ddd
Complex gmbh file proto main (#342)
* Allow enabling local file:// protocol

the option is disabled for security reasons by default, since it might be exploited, when a PDF is generated based on HTML provided by the enduser.

* Update tcpdf.php

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

* Update tcpdf.php

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

* fix whitespaces

Co-authored-by: Markus Staab <m.staab@complex-it.de>
Co-authored-by: Markus Staab <47448731+clxmstaab@users.noreply.github.com>
Co-authored-by: William Desportes <williamdes@wdes.fr>
2021-03-27 09:13:54 +00:00
mtreuberg
978eb8c824
check if file exists before calling unlink (#327)
* check if file exists before calling unlink

file_exists has a known vulnerability.
Replacing with the internal one.

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-27 09:08:05 +00:00
nicolaasuni
14fd6779f3 Revert "temporary files never deleted (#263)"
This reverts commit 7edddd21167870f65ff3f8eba772dfc165de461f.
2021-03-27 09:00:42 +00:00
Dario B
7edddd2116
temporary files never deleted (#263)
When creating PNG files, temporary file are not removed (search for __tcpdf_* in your temp directory). After this changes temp directory never has temporary files created by tcpdf

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-27 08:56:08 +00:00
Christoph Flathmann
b34328ae87
allow styles on <HR> tags (#250)
* allow styles on <HR> tags

* filter lineStyles before adding

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-27 08:48:54 +00:00
Alexander Rakushin
f0e42daeae
Optimized regular expression (#268)
Fix: Empty result for big reports with writeHTML()
2021-03-27 08:45:34 +00:00
Teemu Koskinen
da030d11b7
Second parameter of TCPDF::cell() must be a number (#283)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-27 08:44:38 +00:00
Roy Van Ginneken
c29df4acb4
Make sure parser follows the correct scope and gets unset (#286)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-27 08:43:35 +00:00
Baptiste Pillot
f9046e0e2e
FIX SVGPath should accept 1.19.30 (equiv 1.19,.30) compacted values list (#297)
Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
2021-03-27 08:42:23 +00:00
Nicola Asuni
60ed532e5d
Merge branch 'main' into mb_encoding_change 2021-03-27 08:41:26 +00:00
Nicola Asuni
80decf0234
Merge branch 'main' into fix-duplicate-file-retrieval 2021-03-27 08:40:34 +00:00
Nicola Asuni
26abef749a
Merge branch 'main' into rollback 2021-03-27 08:39:10 +00:00
Den
0eb62a7d5f Fixed large count of notices 2021-03-26 13:56:12 +03:00
Nicola Asuni
456b794f1f
Merge pull request #298 from nullx2/fix-fontspace
Fix font_space
2020-12-09 07:15:50 +00:00
Yuya Yabe
481e46d365 Fix width calc 2020-11-11 15:44:33 +09:00
Przemek Peron
9e8861b4dc Fix for PHP 7.4 2020-10-01 20:27:22 +02:00
Roy Van Ginneken
038d0d5266 Minimize other outgoing image calls 2020-09-28 10:55:17 +02:00
Roy Van Ginneken
210ff2239f Make sure we don\t check the same for existing multiple times 2020-09-28 09:51:01 +02:00
Roy Van Ginneken
5a3b44c729 Fix duplicate retrieval of the same file 2020-09-28 09:38:13 +02:00
BrainFooLong
310624076e removed mb_internal_encoding as it is useless 2020-09-03 11:12:30 +02:00
Jakub Jelen
0727b9598f Remove file_id from the cloned object before destruction
This prevents the cloned object from removing temporary files
owned by the original object during cleanup, potentially
leaving some that were created during the transaction,
but these should be cleaned with the original object

Fixes #205
2020-04-10 17:40:02 +02:00
Enrico
cea137671f
Fix #176: syntax error on line 12387 (invalid usage of array index)
Fix a syntax error issue when accessing an index of a casted variable
2020-02-14 11:47:31 +01:00
nicolaasuni
510070b5e0 Unlink only images in cache 2020-02-12 13:26:24 +00:00
nicolaasuni
84d41c66fd Check if imagekeys exist 2020-02-12 13:14:52 +00:00
nicolaasuni
185eb13f21 Fix syntax error 2020-02-12 11:32:17 +00:00
Nicola Asuni
2260343cfa
Merge branch 'master' into patch-1 2020-02-12 11:18:38 +00:00
Nicola Asuni
91b3fde146
Merge pull request #146 from itrocks/svg-fixes
FIX SVGPath elliptical arc with rx/ry=0 + z should return to initial …
2020-02-12 11:11:40 +00:00
Nicola Asuni
e6f06ee9f8
Merge pull request #166 from sasanyasari/#165
set background image in RTL mode debugged
2020-02-12 11:10:54 +00:00
Nicola Asuni
ceda0aa97c
Merge branch 'master' into patch-1 2020-02-12 11:05:46 +00:00
Nicola Asuni
c50c07fade
Merge pull request #143 from DaRealFreak/fix/no-list-access
Prevent crash in case of no list access in cache path
2020-02-12 11:01:36 +00:00
Nicola Asuni
add4b458d5
Merge pull request #142 from DominiqueFERET/patch-1
Prevents crash and files deletion.
2020-02-12 11:00:35 +00:00
Nicola Asuni
3f56071806
Merge pull request #138 from tanelt/fix_pdf_a_3b_compatibility
Fix PDF/A-3b compatibility and validation
2020-02-12 10:57:43 +00:00