File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 66use Nilgems \PhpTextract \ExtractorService \Contracts \AbstractTextExtractor ;
77use PhpOffice \PhpPresentation \IOFactory ;
88use PhpOffice \PhpPresentation \Shape ;
9+ use PhpOffice \PhpSpreadsheet \Reader \Exception ;
910
1011/**
1112 * PHP PowerPointProcessor
1415class PhpPowerPointProcessor extends AbstractTextExtractor
1516{
1617 protected string $ readerType = "PowerPoint2007 " ;
18+
19+ /**
20+ * @return bool
21+ * @throws TextractException
22+ */
1723 private function hasReadable (): bool
1824 {
1925 $ file_path = $ this ->utilsService ->getFilePath ();
@@ -22,7 +28,6 @@ private function hasReadable(): bool
2228 $ presentation = $ reader ->load ($ file_path );
2329 return count ($ presentation ->getAllSlides ()) > 0 ;
2430 } catch (\Exception $ exception ) {
25- throw $ exception ;
2631 report ($ exception );
2732 throw new TextractException (trans ('textract::processor.error_unable_to_read ' , [
2833 'path ' => $ this ->utilsService ->getFilePath ()
@@ -33,7 +38,7 @@ private function hasReadable(): bool
3338
3439 /**
3540 * @throws TextractException
36- * @throws \PhpOffice\PhpSpreadsheet\Reader\ Exception
41+ * @throws Exception
3742 */
3843 protected function getExtractedText (): string
3944 {
You can’t perform that action at this time.
0 commit comments