Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
If createDocxAndDownload parameter contains path, docx is correctly saved on disk, but the filename provided to the browser is bad, containing path too. So if you call createDocxAndDownload("./temp/test") the file test.docx is created in temp dir, but the open/save dialog in the browser comes with an ungly name like ._temp_test.docx
I think it would be nice to preserve the document name when outputting to browser, or at least let user control path in some other way.
My workaround was to put
in CreateDocx.inc line 2616
I tried this however I get a PHP error. Has anyone else had success in doing this as the output/download filename is ugly compared to that generated on the server.