Skip to content

Commit

Permalink
Version 0.12.58
Browse files Browse the repository at this point in the history
  • Loading branch information
ole1986 committed Oct 16, 2019
1 parent eb6cae7 commit 5aa9b28
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "php",
"request": "launch",
"port": 9000,
"preLaunchTask": "Run PHP Server",
"preLaunchTask": "${defaultBuildTask}",
"xdebugSettings": {
"max_depth": 3
}
Expand Down
1 change: 1 addition & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"label": "Run PHP Server",
"type": "shell",
"command": "php",
"group": "build",
"args": [
"-S",
"localhost:5000"
Expand Down
9 changes: 5 additions & 4 deletions data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Note that this document was generated using the demo script 'readme.php' which c

1<Changelog>

3<0.12.58>

- Recovered $test option in addText() method #128
- Fixed broken PDF 1.3 standard when using callbacks
- Proper calculate full justification on last line

3<0.12.57>

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

3<0.12.53>

- Fixed issue #125

Please refer to https://github.com/rospdf/pdf-php/releases for all previous changes

#NP
Expand Down
Binary file modified readme.pdf
Binary file not shown.
9 changes: 6 additions & 3 deletions readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function dots($info)
// this code has been modified to use ezpdf.

$project_url = "https://github.com/rospdf/";
$project_version = "0.12.57";
$project_version = "Version 0.12.58";

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

Expand All @@ -90,7 +90,10 @@ public function dots($info)
$pdf->line(20, 40, 578, 40);
$pdf->line(20, 822, 578, 822);
$pdf->addText(20, 30, 8, $project_url);
$pdf->addText(515, 30, 8, 'Version ' . $project_version);

$w = $pdf->getTextWidth(8, $project_version);
$pdf->addText(578 - intval($w), 30, 8, $project_version);

$pdf->restoreState();
$pdf->closeObject();
// note that object can be told to appear on just odd or even pages by changing 'all' to 'odd'
Expand All @@ -107,7 +110,7 @@ public function dots($info)
$pdf->ezText("PHP Pdf Class\n", 30, array('justification' => 'centre'));
$pdf->ezText("Native PDF document creation with PHP\n", 20, array('justification' => 'centre'));
$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'));
$pdf->ezText("Version $project_version", 12, array('justification' => 'centre'));
$pdf->ezText($project_version, 12, array('justification' => 'centre'));
$pdf->ezSetDy(-150);
// modified to use the local file if it can
$pdf->ezText("FORK ON GITHUB.COM", 12, array('justification' => 'right'));
Expand Down

0 comments on commit 5aa9b28

Please sign in to comment.