ZendService\LiveDocx returns zip file instead of docx

I'm using the ZendService\LiveDocx library, but when I run this on our stage server (Linux) and request the format to be docx, it returns me back a zip file rather than the actual document. The zip file consists of XML files describing the document. If I request the format to be PDF it works fine. This works fine in my local development environment (Windows 7) when I try to generate a docx document.

Any ideas why the LiveDocx service would return a zip file instead of the actual document?


The zip file consists of XML files describing the document.

That's how .docx files work.

A .docx in fact is a zip file, so you can simply rename them according to your needs.

You can try this by taking a "good looking" docx file and rename it to .zip, then extract.

The solution for your problem is to rename the file from .zip to .docx before exposing to the user as a download.

Need Your Help

What are some good resources for learning backtracking, branch-and-bound and dynamic programming algorithms?

algorithm data-structures dynamic-programming backtracking branch-and-bound

CLRS doesn't seem to cover bactracking/branch-and-bound. I tried several resources online, though I get the idead behind these, I am unable to write code for, let's say, Knapsack problem. So, I want

How to enforce child-of-X limitation on template parameter?

c++ templates c++11 typetraits

Suppose I want to enforce the limitation that the template parameter passed in is a child of Foo.