Skip to content

Commit

Permalink
Upgrade to mPDF 7.0+
Browse files Browse the repository at this point in the history
Closes #144
  • Loading branch information
PowerKiKi committed Sep 29, 2017
1 parent 04cd707 commit 360db8d
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Merge data-validations to reduce written worksheet size - @billblume [#131](https://github.com/PHPOffice/PhpSpreadSheet/issues/131)
- Throws exception if a XML file is invalid - @GreatHumorist [#222](https://github.com/PHPOffice/PhpSpreadsheet/pull/222)
- Upgrade to mPDF 7.0+ - [#144](https://github.com/PHPOffice/PhpSpreadsheet/issues/144)

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"psr/simple-cache": "^1.0"
},
"require-dev": {
"mpdf/mpdf": "^6.1",
"tecnickcom/tcpdf": "^6.2",
"squizlabs/php_codesniffer": "^2.7",
"phpunit/phpunit": "^5.7",
"friendsofphp/php-cs-fixer": "^2.0",
"dompdf/dompdf": "^0.8.0"
"dompdf/dompdf": "^0.8.0",
"mpdf/mpdf": "7.0.0-RC1@dev"
},
"suggest": {
"ext-gd": "Required for exact column width autocalculation",
Expand Down
107 changes: 88 additions & 19 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Writer/Pdf/MPDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function save($pFilename)
}

// Create PDF
$pdf = new \mPDF();
$pdf = new \Mpdf\Mpdf();
$ortmp = $orientation;
$pdf->_setPageSize(strtoupper($paperSize), $ortmp);
$pdf->DefOrientation = $orientation;
Expand Down

0 comments on commit 360db8d

Please sign in to comment.