Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index

Eric Brunel wrote:
Hello all,

We are trying to generate a document in Open Document Format and we're having a problem with the latest Mac version of LibreOffice ( it says the document is corrupt when other OOo-based software open it correctly (namely IBM / Lotus Symphony 3.0.0 FP2 and OOo itself version 3.1.1, all on the Mac). The 'repair' option is available and actually opens the document correctly, but we would prefer to have a usable document right away and not force people to repair it after each generation…

Here is how we generate the document: we actually use an existing ODF document as some kind of template, unzip it, extract all its contents and replace the content.xml file by one we generate ourselves. One of the generated documents causing the problem is attached.

So if anyone could have a look and tell us what we are doing wrong. Or even better, if there's a way to make LibreOffice tell us what's actually wrong in the document, that would be great.

Thanks a lot.
- Eric Brunel <> -
PragmaDev : Real Time Software Development Tools -
I did some testing on the document you created. First I downloaded the file, created a copy, and renamed the copy from .odt to .zip ( Then I opened the downloaded file with LO allowing it to repair the file. Then I saved it (doctext(repaired).odt, created a copy of it, and renamed it from .odt to .zip. I also opened the two zipped files next to each other.
     My findings: doctext(repaired).zip Configurations2 0 bytes META-INF 2.0kB 1.2 kB Pictures 767 bytes 767 bytes Thumbnails 2.3 kB content.xml 5.0 kB 4.8 kB manifest.rdf 899 bytes meta.xml 1.1 kB 1.1 kB mimetype 39 bytes 39 bytes settings.xml 6.8 kB 9.0 kB styles.xml 14.3 kB 15.0 kB

I will let others draw their own conclusions as to what this means. Then again, I have some questions and comments. Why are you creating a document by only changing the content.xml file? From the above information, clearly other files needed to be changed as well. And as Andreas pointed out, LO will report the error regardless of the OS used on a computer. Will creating a template with the layout you want work just as well or better? It can be used to open a new document. Then you can enter or copy material into the new document. When you save this, LO will update all the files and folders within the ODT file.


For unsubscribe instructions e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.