PHPOffice / PHPPresentation

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

Could not open for Writing pptx file #806

Open SudiartoSC opened 5 months ago

SudiartoSC commented 5 months ago

I have successfully read the pptx file and I tried to change one of the paragraphs from value A to value B, but when it was saved to another file (with a new name) there is a mistake : Source File Name :xxxxxxx\wrt.pptx output File Name : xxxxxxx\weekly_051014000000.pptx _Fatal error: Uncaught Exception: Could not open xxxxxxx\weekly051014000000.pptx for writing. in pth\vendor\phpoffice\common\src\Common\Adapter\Zip\ZipArchiveAdapter.php:28 Stack trace: #0 pth\vendor\phpoffice\phppresentation\src\PhpPresentation\Writer\PowerPoint2007.php(99): PhpOffice\Common\Adapter\Zip\ZipArchiveAdapter->open('D:\xampp\htdocs...') #1 D:\xampp\htdocs\mypm\power.php(114): PhpOffice\PhpPresentation\Writer\PowerPoint2007->save('D:\xampp\htdocs...') #2 {main} thrown in 2024-06-21_101430

Progi1984 commented 3 months ago

@SudiartoSC Hi, Could you give a sample code and a sample file for reproducing the bug ?