Fix PDF samples
This commit is contained in:
parent
4b75f7d469
commit
2e24a1e1b4
|
@ -53,6 +53,6 @@ header('Content-Type: application/pdf');
|
|||
header('Content-Disposition: attachment;filename="01simple.pdf"');
|
||||
header('Cache-Control: max-age=0');
|
||||
|
||||
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'PDF');
|
||||
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Pdf');
|
||||
$writer->save('php://output');
|
||||
exit;
|
||||
|
|
|
@ -91,7 +91,7 @@ foreach ($inputFileNames as $inputFileName) {
|
|||
|
||||
// Save
|
||||
$filename = $helper->getFilename($inputFileName);
|
||||
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'PDF');
|
||||
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Pdf');
|
||||
$writer->setIncludeCharts(true);
|
||||
$callStartTime = microtime(true);
|
||||
$writer->save($filename);
|
||||
|
|
Loading…
Reference in New Issue