Skip to content

Commit 5aa9b28

Browse files
author
ole1986
committed
Version 0.12.58
1 parent eb6cae7 commit 5aa9b28

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "php",
77
"request": "launch",
88
"port": 9000,
9-
"preLaunchTask": "Run PHP Server",
9+
"preLaunchTask": "${defaultBuildTask}",
1010
"xdebugSettings": {
1111
"max_depth": 3
1212
}

.vscode/tasks.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"label": "Run PHP Server",
88
"type": "shell",
99
"command": "php",
10+
"group": "build",
1011
"args": [
1112
"-S",
1213
"localhost:5000"

data.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ Note that this document was generated using the demo script 'readme.php' which c
2929

3030
1<Changelog>
3131

32+
3<0.12.58>
33+
34+
- Recovered $test option in addText() method #128
35+
- Fixed broken PDF 1.3 standard when using callbacks
36+
- Proper calculate full justification on last line
3237

3338
3<0.12.57>
3439

@@ -51,10 +56,6 @@ Note that this document was generated using the demo script 'readme.php' which c
5156
- Recovered textCol option in ezTable #127
5257
- Slightly amended table-enhancements example
5358

54-
3<0.12.53>
55-
56-
- Fixed issue #125
57-
5859
Please refer to https://github.com/rospdf/pdf-php/releases for all previous changes
5960

6061
#NP

readme.pdf

8 Bytes
Binary file not shown.

readme.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function dots($info)
7272
// this code has been modified to use ezpdf.
7373

7474
$project_url = "https://github.com/rospdf/";
75-
$project_version = "0.12.57";
75+
$project_version = "Version 0.12.58";
7676

7777
$pdf = new Creport('a4', 'portrait', 'none', null);
7878

@@ -90,7 +90,10 @@ public function dots($info)
9090
$pdf->line(20, 40, 578, 40);
9191
$pdf->line(20, 822, 578, 822);
9292
$pdf->addText(20, 30, 8, $project_url);
93-
$pdf->addText(515, 30, 8, 'Version ' . $project_version);
93+
94+
$w = $pdf->getTextWidth(8, $project_version);
95+
$pdf->addText(578 - intval($w), 30, 8, $project_version);
96+
9497
$pdf->restoreState();
9598
$pdf->closeObject();
9699
// note that object can be told to appear on just odd or even pages by changing 'all' to 'odd'
@@ -107,7 +110,7 @@ public function dots($info)
107110
$pdf->ezText("PHP Pdf Class\n", 30, array('justification' => 'centre'));
108111
$pdf->ezText("Native PDF document creation with PHP\n", 20, array('justification' => 'centre'));
109112
$pdf->ezText("released under the terms of the MIT license\n\n<c:alink:https://github.com/rospdf/pdf-php/graphs/contributors>Contributors</c:alink>\n", 14, array('justification' => 'centre'));
110-
$pdf->ezText("Version $project_version", 12, array('justification' => 'centre'));
113+
$pdf->ezText($project_version, 12, array('justification' => 'centre'));
111114
$pdf->ezSetDy(-150);
112115
// modified to use the local file if it can
113116
$pdf->ezText("FORK ON GITHUB.COM", 12, array('justification' => 'right'));

0 commit comments

Comments
 (0)