Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 phpPowerpoint 成功创建了一个 ppt 文件。
如何更改保存位置?我想将文件保存到其他文件夹
谢谢你的帮助!
当您在调用中指定文件名以保存时
$objPPTXWriter->save('filename.pptx');
只需指定目录路径
$objPPTXWriter->save('/path/to/my/directory/filename.pptx');