From fdec49b0fd1b150c948f22990fc04844b59ef903 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 2 Jan 2024 23:34:19 +0000 Subject: [PATCH] update --- PhpOffice/PhpPresentation/Reader/PowerPoint97.php | 6 ++++++ PhpOffice/PhpSpreadsheet/Reader/Xls.php | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/PhpOffice/PhpPresentation/Reader/PowerPoint97.php b/PhpOffice/PhpPresentation/Reader/PowerPoint97.php index 477ae4a..4b87605 100755 --- a/PhpOffice/PhpPresentation/Reader/PowerPoint97.php +++ b/PhpOffice/PhpPresentation/Reader/PowerPoint97.php @@ -401,6 +401,7 @@ class PowerPoint97 implements ReaderInterface throw new FileNotFoundException($pFilename); } + /* try { // Use ParseXL for the hard work. $ole = new OLERead(); @@ -411,6 +412,11 @@ class PowerPoint97 implements ReaderInterface } catch (\Exception $e) { return false; } + */ + + $ole = new OLERead(); + + return $ole->read($pFilename); } /** diff --git a/PhpOffice/PhpSpreadsheet/Reader/Xls.php b/PhpOffice/PhpSpreadsheet/Reader/Xls.php index f7d0da4..cae7171 100755 --- a/PhpOffice/PhpSpreadsheet/Reader/Xls.php +++ b/PhpOffice/PhpSpreadsheet/Reader/Xls.php @@ -432,6 +432,13 @@ class Xls extends BaseReader return false; } + // Use ParseXL for the hard work. + $ole = new OLERead(); + + // get excel data + return $ole->read($filename); + + /* try { // Use ParseXL for the hard work. $ole = new OLERead(); @@ -443,6 +450,7 @@ class Xls extends BaseReader } catch (PhpSpreadsheetException $e) { return false; } + */ } public function setCodepage(string $codepage): void