PHPOffice / PHPPresentation

A pure PHP library for reading and writing presentations documents
https://phpoffice.github.io/PHPPresentation
Other
1.3k stars 519 forks source link

How to view it in browser insetad of downloading it #472

Open NovicePHP opened 6 years ago

NovicePHP commented 6 years ago

Hello Team,

I don't have write access on the server folder and so am unable to create the ppt. The below Piece of code wites the ppt and stores it in the root directory.

$oWriterPPTX->save(DIR . "/sample.pptx");

Is there something that I can download it from the browser just like we use it for mpdf.

$mpdf->Output($filename. '.pdf', 'I');

I was struck in a point on how to download the ppt from the browser instead of downloading automatically into the root folder.

Any help on this is much more appreciated!!

NovicePHP commented 6 years ago

Can anyone help me out here please. I was stuck at this point on downloading the ppt file directly from the browser

NovicePHP commented 6 years ago

Any feedback?