-
Notifications
You must be signed in to change notification settings - Fork 533
Closed
Labels
Milestone
Description
I am doing the conversion of pptx files to pdf using the PhpPresentation library, but it seems that the library does not support this yet, my code:
public static function convertFilePptxToPdf($file, $nameFile)
{
//Load pptx file
$reader = \PhpOffice\PhpPresentation\IOFactory::createReader("PowerPoint2007");
$spreadsheet = $reader->load($file);
//Save it into PDF
$PDFWriter = \PhpOffice\PhpPresentation\IOFactory::createWriter($spreadsheet, 'Dompdf');
$PDFWriter->save(storage_path('app/public/files/' . $nameFile));
return $nameFile;
}