Skip to content

Commit e56751d

Browse files
committed
update the mpdf library to 7.0.3
This might improve performance with large CSS files (#333) and possibly resolve some bugs (#316 and maybe #246).
1 parent a058783 commit e56751d

File tree

318 files changed

+10972
-9403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

318 files changed

+10972
-9403
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88
],
99
"require": {
10-
"mpdf/mpdf": "dev-development"
10+
"mpdf/mpdf": "7.0.3"
1111
},
1212
"replace": {
1313
"paragonie/random_compat": "*"

composer.lock

Lines changed: 10 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/composer/ClassLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ private function findFileWithExtension($class, $ext)
379379
$subPath = substr($subPath, 0, $lastPos);
380380
$search = $subPath.'\\';
381381
if (isset($this->prefixDirsPsr4[$search])) {
382+
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
382383
foreach ($this->prefixDirsPsr4[$search] as $dir) {
383-
$length = $this->prefixLengthsPsr4[$first][$search];
384-
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
384+
if (file_exists($file = $dir . $pathEnd)) {
385385
return $file;
386386
}
387387
}

vendor/composer/autoload_files.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

vendor/composer/autoload_real.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,6 @@ public static function getLoader()
4747

4848
$loader->register(true);
4949

50-
if ($useStaticLoader) {
51-
$includeFiles = Composer\Autoload\ComposerStaticInitb71fb58cdf4c29fb0d05b258cce42b04::$files;
52-
} else {
53-
$includeFiles = require __DIR__ . '/autoload_files.php';
54-
}
55-
foreach ($includeFiles as $fileIdentifier => $file) {
56-
composerRequireb71fb58cdf4c29fb0d05b258cce42b04($fileIdentifier, $file);
57-
}
58-
5950
return $loader;
6051
}
6152
}
62-
63-
function composerRequireb71fb58cdf4c29fb0d05b258cce42b04($fileIdentifier, $file)
64-
{
65-
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66-
require $file;
67-
68-
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
69-
}
70-
}

vendor/composer/autoload_static.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77
class ComposerStaticInitb71fb58cdf4c29fb0d05b258cce42b04
88
{
9-
public static $files = array (
10-
'db356362850385d08a5381de2638b5fd' => __DIR__ . '/..' . '/mpdf/mpdf/src/functions.php',
11-
);
12-
139
public static $prefixLengthsPsr4 = array (
1410
'P' =>
1511
array (

vendor/composer/installed.json

Lines changed: 69 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,73 @@
11
[
2+
{
3+
"name": "mpdf/mpdf",
4+
"version": "v7.0.3",
5+
"version_normalized": "7.0.3.0",
6+
"source": {
7+
"type": "git",
8+
"url": "https://github.com/mpdf/mpdf.git",
9+
"reference": "5681a0cae1eea197143d5d27f06e19b0523cd8d6"
10+
},
11+
"dist": {
12+
"type": "zip",
13+
"url": "https://api.github.com/repos/mpdf/mpdf/zipball/5681a0cae1eea197143d5d27f06e19b0523cd8d6",
14+
"reference": "5681a0cae1eea197143d5d27f06e19b0523cd8d6",
15+
"shasum": ""
16+
},
17+
"require": {
18+
"ext-gd": "*",
19+
"ext-mbstring": "*",
20+
"paragonie/random_compat": "^1.4|^2.0",
21+
"php": "^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0",
22+
"psr/log": "^1.0",
23+
"setasign/fpdi": "1.6.*"
24+
},
25+
"require-dev": {
26+
"mockery/mockery": "^0.9.5",
27+
"phpunit/phpunit": "^5.0",
28+
"squizlabs/php_codesniffer": "^2.7.0",
29+
"tracy/tracy": "^2.4"
30+
},
31+
"suggest": {
32+
"ext-bcmath": "Needed for generation of some types of barcodes",
33+
"ext-xml": "Needed mainly for SVG manipulation",
34+
"ext-zlib": "Needed for compression of embedded resources, such as fonts"
35+
},
36+
"time": "2018-01-03T07:32:36+00:00",
37+
"type": "library",
38+
"extra": {
39+
"branch-alias": {
40+
"dev-development": "7.0-dev"
41+
}
42+
},
43+
"installation-source": "dist",
44+
"autoload": {
45+
"psr-4": {
46+
"Mpdf\\": "src/"
47+
}
48+
},
49+
"notification-url": "https://packagist.org/downloads/",
50+
"license": [
51+
"GPL-2.0"
52+
],
53+
"authors": [
54+
{
55+
"name": "Matěj Humpál",
56+
"role": "Developer, maintainer"
57+
},
58+
{
59+
"name": "Ian Back",
60+
"role": "Developer (retired)"
61+
}
62+
],
63+
"description": "A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support",
64+
"homepage": "https://mpdf.github.io",
65+
"keywords": [
66+
"pdf",
67+
"php",
68+
"utf-8"
69+
]
70+
},
271
{
372
"name": "psr/log",
473
"version": "1.0.2",
@@ -98,77 +167,5 @@
98167
"fpdi",
99168
"pdf"
100169
]
101-
},
102-
{
103-
"name": "mpdf/mpdf",
104-
"version": "dev-development",
105-
"version_normalized": "dev-development",
106-
"source": {
107-
"type": "git",
108-
"url": "https://github.com/mpdf/mpdf.git",
109-
"reference": "4b5f88f7b826d3a67bff6a1d7bf43806dac33bb4"
110-
},
111-
"dist": {
112-
"type": "zip",
113-
"url": "https://api.github.com/repos/mpdf/mpdf/zipball/4b5f88f7b826d3a67bff6a1d7bf43806dac33bb4",
114-
"reference": "4b5f88f7b826d3a67bff6a1d7bf43806dac33bb4",
115-
"shasum": ""
116-
},
117-
"require": {
118-
"ext-gd": "*",
119-
"ext-mbstring": "*",
120-
"paragonie/random_compat": "^2.0",
121-
"php": "^5.6 || ~7.0.0 || ~7.1.0",
122-
"psr/log": "^1.0",
123-
"setasign/fpdi": "1.6.*"
124-
},
125-
"require-dev": {
126-
"mockery/mockery": "^0.9.5",
127-
"phpunit/phpunit": "^5.0",
128-
"squizlabs/php_codesniffer": "^2.7.0",
129-
"tracy/tracy": "^2.4"
130-
},
131-
"suggest": {
132-
"ext-bcmath": "Needed for generation of some types of barcodes",
133-
"ext-xml": "Needed mainly for SVG manipulation",
134-
"ext-zlib": "Needed for compression of embedded resources, such as fonts"
135-
},
136-
"time": "2017-06-05T11:42:31+00:00",
137-
"type": "library",
138-
"extra": {
139-
"branch-alias": {
140-
"dev-development": "7.0-dev"
141-
}
142-
},
143-
"installation-source": "dist",
144-
"autoload": {
145-
"psr-4": {
146-
"Mpdf\\": "src/"
147-
},
148-
"files": [
149-
"src/functions.php"
150-
]
151-
},
152-
"notification-url": "https://packagist.org/downloads/",
153-
"license": [
154-
"GPL-2.0"
155-
],
156-
"authors": [
157-
{
158-
"name": "Matěj Humpál",
159-
"role": "Developer, maintainer"
160-
},
161-
{
162-
"name": "Ian Back",
163-
"role": "Developer (retired)"
164-
}
165-
],
166-
"description": "A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support",
167-
"homepage": "https://mpdf.github.io",
168-
"keywords": [
169-
"pdf",
170-
"php",
171-
"utf-8"
172-
]
173170
}
174171
]

vendor/mpdf/mpdf/.github/CONTRIBUTING.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,30 @@ Contributing
44
Issue tracker
55
-------------
66

7-
The Issue tracker serves mainly as a place to report bugs and request new features. Please do not abuse it
8-
as a general questions or troubleshooting location.
7+
The Issue tracker serves mainly as a place to report bugs and request new features.
8+
Please do not abuse it as a general questions or troubleshooting location.
99

10-
For that matter you can always use the
10+
For these questions you can always use the
1111
[mpdf tag](https://stackoverflow.com/questions/tagged/mpdf) at [Stack Overflow](https://stackoverflow.com/).
1212

13+
* Please provide a small example in php/html that reproduces your situation
14+
* Please report one feature or one bug per issue
1315

1416
Pull requests
1517
-------------
1618

1719
Pull requests should be always based on the default [development](https://github.com/mpdf/mpdf/tree/development)
1820
branch except for backports to older versions.
1921

20-
Use an aptly named feature branch for the Pull request.
22+
Some guidelines:
2123

22-
Only files and lines affecting the scope of the Pull request must be affected.
24+
* Use an aptly named feature branch for the Pull request.
2325

24-
Make small, *atomic* commits that keep the smallest possible related code changes together.
26+
* Only files and lines affecting the scope of the Pull request must be affected.
2527

26-
Code should be accompanied by a unit test testing expected behaviour.
28+
* Make small, *atomic* commits that keep the smallest possible related code changes together.
29+
30+
* Code should be accompanied by a unit test testing expected behaviour.
2731

2832
When updating a PR, do not create a new one, just `git push --force` to your former feature branch, the PR will
2933
update itself.

vendor/mpdf/mpdf/.github/ISSUE_TEMPLATE.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
### I have this problem/would like to have this functionality
21

3-
### These are mPDF and PHP versions I am using
2+
> Please use https://stackoverflow.com/questions/tagged/mpdf for all your general questions or troubleshooting!
3+
> For contributing here, please see the guideline: https://github.com/mpdf/mpdf/blob/development/.github/CONTRIBUTING.md
4+
5+
### I found this bug / would like to have this new functionality
6+
7+
### This is mPDF and PHP version and environment (fpm/cli etc) I am using
48

59
### This is a PHP code snippet I use
610

@@ -10,7 +14,7 @@
1014
1115
```
1216

13-
### This is a HTML code snippet I use
17+
### This is a HTML/CSS code snippet I use
1418

1519
```
1620

0 commit comments

Comments
 (0)