Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated mPDF to version 7.0. #149

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"psr/simple-cache": "^1.0"
},
"require-dev": {
"mpdf/mpdf": "^6.1",
"mpdf/mpdf": "^7.0@dev",
"tecnickcom/tcpdf": "^6.2",
"squizlabs/php_codesniffer": "^2.7",
"phpunit/phpunit": "^5.7",
Expand Down
97 changes: 83 additions & 14 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 @@ -73,7 +73,7 @@ public function save($pFilename)
}

// Create PDF
Copy link
Contributor

@titanrat titanrat May 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't work without this config.
$config = ['tempDir' => $this->getTempDir()];
$pdf = new \Mpdf\Mpdf($config);

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