Forum


Replies: 3   Views: 3549
Version 6.0 - corrupt documents
Topic closed:
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.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 19-07-2016 - 06:56

Hello,

If you create an empty document from scratch, the DOCX output will always be 'corrupted'. You need to add at least one content, use a template or change the default base template from phpdocx.

About your issue, it seems your server is returning a wrong DOCX when downloading it. Maybe your web server has a wrong config to return DOCX mime types. We recommend you to run the included examples and download the DOCX output using an alternative such as FTP just as test; the library is working perfectly.

Regards.