Categories > OpenTBS with DOCX >

Zip error on Mac OS X

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Joe
Date: 2016-11-24
Time: 15:53

Zip error on Mac OS X

Hello,

When testing the online demo of OpenTBS the merged output document can not be opened using Pages or Preview or anything else (did not try Word though).

Further research learns that the built-in unzip tool of OS X Sierra can not unzip the file.docx bundle.

Unzipping with the command line tool /usr/bin/unzip works; then zipping the file using the command line zip tool results in a correct docx file.
What could be wrong?


commands:
mkdir test
cd test
/usr/bin/unzip ../testdoc.docx

/usr/bin/zip -r test.zip *

mv test.zip test.docx

open test.docx
And the document is correctly opened in Pages


By: Skrol29
Date: 2016-11-24
Time: 17:11

Re: Zip error on Mac OS X

Hi,

Thanks for this feedback.

The generated DOCX is client independent, and that the first time this problem is noticed.

Could you send to me your original two files "testdoc.docx" (the generated file) and "test.docx" (your fixed file) ?

Regards,
By: Joe
Date: 2016-11-24
Time: 17:19

Re: Zip error on Mac OS X

Just sent you an email as I can not attach files here...