fixed pdf temp directory (#845)
This commit is contained in:
@@ -32,7 +32,7 @@ class MPdfConverter implements HtmlToPdfConverter
|
|||||||
*/
|
*/
|
||||||
public function convertToPdf(string $html)
|
public function convertToPdf(string $html)
|
||||||
{
|
{
|
||||||
$mpdf = new Mpdf([['tempDir' => $this->cacheDirectory]]);
|
$mpdf = new Mpdf(['tempDir' => $this->cacheDirectory]);
|
||||||
$mpdf->creator = Constants::SOFTWARE;
|
$mpdf->creator = Constants::SOFTWARE;
|
||||||
$mpdf->WriteHTML($html);
|
$mpdf->WriteHTML($html);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user