From 2e24a1e1b4d9f1235d8403a3e144d58e31b2489b Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 24 Mar 2017 19:46:19 +0900 Subject: [PATCH] Fix PDF samples --- samples/01_Simple_download_pdf.php | 2 +- samples/32_Chart_read_write_PDF.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/01_Simple_download_pdf.php b/samples/01_Simple_download_pdf.php index 67111fb0..dc23daa0 100644 --- a/samples/01_Simple_download_pdf.php +++ b/samples/01_Simple_download_pdf.php @@ -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; diff --git a/samples/32_Chart_read_write_PDF.php b/samples/32_Chart_read_write_PDF.php index 8d895d43..d41f6728 100644 --- a/samples/32_Chart_read_write_PDF.php +++ b/samples/32_Chart_read_write_PDF.php @@ -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);