Forum


Replies: 1   Views: 3403
Headers alternative to createdocxanddownload
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 davelavinsky  · 04-05-2016 - 07:19

Im got a patch from phpdocx. Previously I used $docx->createDocxAndDownload('temp/somedoc');

Now, I cannot use createDocxAndDownload.

So are these the correct headers for createDocxAndDownload?

    header('Content-type:application/vnd.openxmlformats-officedocument.wordprocessingml.document');
    header('Content-Disposition:attachment;filename="somedoc.docx"');
    readfile('temp/2.docx');

 

Posted by admin  · 04-05-2016 - 07:41

Hello,

We recommend you to download again the package from your account to check the original code of the createDocxAndDownload method.

Regards.