* 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>
* 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>
When using text-transform: uppercase, convert "&NBSP;" back to lowercase " " so that it is recognized as a space by Adobe Acrobat rather than printing out "&NBSP;"
* 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>
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>
* 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>
* 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>
* 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>
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>
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