We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 200543e commit 07edabaCopy full SHA for 07edaba
src/Maatwebsite/Excel/Writers/LaravelExcelWriter.php
@@ -471,7 +471,9 @@ protected function _setWriter()
471
{
472
// Set pdf renderer
473
if ($this->format == 'PDF')
474
+ {
475
$this->setPdfRenderer();
476
+ }
477
478
// Create the writer
479
$this->writer = PHPExcel_IOFactory::createWriter($this->excel, $this->format);
@@ -484,6 +486,12 @@ protected function _setWriter()
484
486
$this->writer->setLineEnding(Config::get('excel.csv.line_ending', "\r\n"));
485
487
}
488
489
+ // Set CSV delimiter
490
+ if ($this->format == 'PDF')
491
492
+ $this->writer->writeAllSheets();
493
494
+
495
// Calculation settings
496
$this->writer->setPreCalculateFormulas(Config::get('excel.export.calculate', false));
497
0 commit comments