862 Commits

Author SHA1 Message Date
upsite4k
21fa9c267d
Valid PDF/A
property of schema was missing
2019-11-22 15:23:05 +01:00
SunMar
e2ac8de9cd
Fix license in composer.json
As per the [`composer.json` specification](https://getcomposer.org/doc/04-schema.md#license) the license should be a proper identifier from the [SPDX License List](https://spdx.org/licenses/). For LGPL 3.0 or later the proper identifier is `LGPL-3.0-or-later`.
9fde7bb9b4/LICENSE.TXT (L5-L8)
2019-11-12 22:00:21 +01:00
Ivan Koliadynskyy
a428c95eaf
Update tcpdf_static.php 2019-11-01 15:07:12 +02:00
Baptiste Pillot
3637a35af4 FIX SVGPath elliptical arc with rx/ry=0 + z should return to initial point
(cherry picked from commit b00ecd6be852c95e699d0396f6ed4b2b54ad1e41)
2019-10-21 17:00:41 +02:00
Vojta Matějka
7dbdfa4051
Problem with imagekeys undefined or unlinked
PR #136 removed problem with undefined `$imagekeys`, but the solution skipped cleaning files in `$imagekeys`.
The problem about this is that `_destroy` function is called 3 times (from `Close` function, as `shutdown_handler` and from `__desctruct` function). Only first time is called as `destroyall == false`, but unset `$imagekeys`. My solution is to preserve `$imagekeys` to be cleaned by call with `$imagekeys == true`.
2019-10-20 15:30:04 +02:00
Dominique FERET
a90b05ad03
Better fix for crash and erasing files issue
Thank you to @dfontenot for his suggestion.
2019-10-02 07:17:15 +02:00
Dominique FERET
081369e428
Emergency fix: prevent erase users pictures
This method has deleted several logo images when we use the rollback function. Added path checking to avoid deleting files elsewhere than in /tmp/
2019-10-01 16:28:06 +02:00
Dominique FERET
ebc9ac2c81
Check existence of file before delete it. 2019-09-30 20:14:49 +02:00
Steffen Keuper
e915d4ac49 Prevent crash in case of no list access in cache path 2019-09-30 15:39:53 +02:00
Dominique FERET
e17e0daad8
Prevents the deletion of non-existent files in /tmp
Added an @ in front of unlink to avoid the crash.
2019-09-30 10:58:03 +02:00
gabe.martin
fc1de5bff5 Removing backup changelog files from repo 2019-09-27 11:26:33 -07:00
Tanel Tähepõld
b36b51f85a Fixed PDF/A-3B validation issue caused by missing pdfaSchema:property. Failed veraPDF check: Specification: ISO 19005-3:2012, Clause: 6.6.2.3, Test number: 3 2019-09-21 16:40:16 +03:00
Tanel Tähepõld
19e6c95870 Added .gitignore 2019-09-21 16:07:50 +03:00
Greg Roach
0c73a9c580
PHP 7.4 - cannot use array offset on integers
PHP 7.3 casts integers to strings.
PHP 7.4 throws the error `Trying to access array offset on value of type int`
2019-09-20 23:40:22 +01:00
nicolaasuni
9fde7bb9b4 Update ICC profile 6.3.2 2019-09-20 10:35:01 +01:00
nicolaasuni
898eba141c Bump version 6.3.1 2019-09-20 07:48:57 +01:00
Nicola Asuni
ce341641a7
Merge pull request #135 from remicollet/patch-1
Fix reported version
2019-09-20 07:47:36 +01:00
Nicola Asuni
380416b6ad
Merge pull request #136 from remicollet/issue-undef
fix Undefined property: GLPIPDF::$imagekeys
2019-09-20 07:47:05 +01:00
Remi Collet
b86d1ea34a fix Undefined property: GLPIPDF::$imagekeys 2019-09-19 13:15:29 +02:00
Remi Collet
cabbccc022
Fix reported version 2019-09-19 13:02:12 +02:00
nicolaasuni
aff6e6a99a Fix typos 6.3.0 2019-09-19 10:51:10 +01:00
nicolaasuni
e52ee540ee Merge branch 'master' of github.com:tecnickcom/TCPDF 2019-09-19 10:41:29 +01:00
nicolaasuni
b41a5ca311 new setExtraXMPRDF function to set custom RDF XMP data 2019-09-19 10:41:12 +01:00
Nicola Asuni
87bd366fcc
Merge pull request #107 from Jakuje/patch-1
Fix the documentation how to calculate the cell height
2019-09-19 10:40:27 +01:00
Nicola Asuni
b00a4ed46c
Merge pull request #115 from defrance/patch-1
Introduce other version of pdfA (2 and 3)
2019-09-19 10:19:44 +01:00
Nicola Asuni
2b5fca36b2
Merge pull request #116 from Tofandel/patch-1
Fix performance issue of cloned instances
2019-09-19 10:14:32 +01:00
Nicola Asuni
149752e5fc
Merge pull request #117 from freddieleeman/patch-1
URI in PDF can result in E_NOTICE
2019-09-19 10:12:08 +01:00
Nicola Asuni
a8269f895d
Merge pull request #123 from jfcherng/fix-php74-type-warning
Fix a warning for PHP 7.4
2019-09-19 10:07:52 +01:00
Nicola Asuni
8d5e30ddf3
Merge pull request #124 from goat1000/master
Fixed gradient offsets for percentage-based stops.
2019-09-19 10:03:56 +01:00
Nicola Asuni
8a07572324
Merge pull request #130 from erichk4/patch-1
file_get_contents
2019-09-19 09:51:01 +01:00
Nicola Asuni
8ab8cf4bc4
Merge pull request #131 from Findus23/php73_braces
don't use deprecated array syntax (PHP 7.4)
2019-09-19 09:49:22 +01:00
Nicola Asuni
d5c92ffd2f
Merge pull request #134 from remicollet/issue-php74
Fix Array and string offset access syntax with curly braces is deprec…
2019-09-19 09:47:50 +01:00
Remi Collet
e2deae00e5 fix PHP Warning: chr() expects parameter 1 to be int 2019-09-13 11:23:30 +02:00
Remi Collet
b0948269a6 Fix Array and string offset access syntax with curly braces is deprecated 2019-09-13 11:13:56 +02:00
Lukas Winkler
3cc4c34a29
don't use deprecated array syntax 2019-08-28 22:20:52 +02:00
Erich Munz
d144ad0078
file_get_contents
return value should also be checked for a non-empty string
2019-08-28 11:44:18 +02:00
goat1000
2db423fe7b Fixed gradient offsets for percentage-based stops. 2019-07-12 08:23:37 +01:00
Jack Cherng
34eb0dff48
Fix a warning for PHP 7.4
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
2019-06-05 09:07:04 +08:00
Freddie Leeman
b5e0ca406f
URI in PDF can result in E_NOTICE
Generating a PDF file with a hyperlink like "tel:12345" results in an error: "Errstr: Undefined index: path" due to the fact that parse_url should only be used for URL not URI. 

SOURCE: https://www.php.net/manual/en/function.parse-url.php
"This function is intended specifically for the purpose of parsing URLs and not URIs."

This fix does not prevent parsing the link but checks if the parsed result contains a 'path'. If it does not than the rest of the if statement is ignored and no error is generated.
2019-04-04 13:43:49 +02:00
Adrien Foulon
de0ae1af61
Also change glob to readdir which performs better 2019-03-22 13:13:31 +01:00
Adrien Foulon
e91887e463
Fix performance issue of cloned instances
I noted a performance issue using TCPDF when doing a lot of clones of the instance, it's caused by the destructor being called multiple times to cleanup things that already have been cleaned
This checks if the files have already been cleaned before redoing an expensive filesystem operation again (glob)
2019-03-22 12:53:16 +01:00
BENKE Charlene
1a7dcb7167
Update tcpdf.php 2019-03-13 17:06:06 +01:00
BENKE Charlene
71bc8786de
Add UF and AFRelationship missing 2019-03-13 16:54:13 +01:00
BENKE Charlene
aa485f78ff
Introduce other version of pdfA (2 and 3)
pdfa_mode is false or the number version (1, 2 or 3)
Need it for factur-X generation (pdfa/3)
2019-03-12 11:15:49 +01:00
Nicola Asuni
756908329d
Merge pull request #105 from fschaeffer/patch-1
[BUGFIX] fix SpotColor handling in HTML
2019-01-16 11:51:36 +00:00
Nicola Asuni
a3e2f2ffdf
Merge pull request #106 from soerenbernstein/patch-1
Update tcpdf.php to prevent errors in PHP 7.2
2019-01-16 11:47:50 +00:00
Nicola Asuni
e9cd9eab11
Merge pull request #110 from ausi/patch-1
Fix TCPDF_STATIC::fileGetContents()
2019-01-16 11:39:19 +00:00
Martin Auswöger
b83e325c38
Fix TCPDF_STATIC::fileGetContents()
Currently only the first path in the `$alt` array gets checked. This pull request fixes this so that all paths are checked.
2019-01-07 13:19:28 +01:00
Jakub Jelen
32fdbecd56
Drop duplicated array indices 2018-12-17 22:48:16 +01:00
Jakub Jelen
36dc955984
Fix the documentation how to calculate the cell height 2018-12-12 00:58:05 +01:00