lunedì 22 novembre 2010

OpenOffice.org extended format and odtPHP

Today I had to fight with generation of odt from a cakephp web application.

Apparently all the code was right (which happens very seldom to me), but odtphp raised some weird exception. For example, it didn't find the segment and as soon as I used setSegment() the error was fatal.

Don't know how, I recalled a post on the linuxtrent mailing list where someone stated that even openoffice don't fully follow a standard, because it uses an extended version of odf. Well, it seems like if odtphp don't like this extension.

I saved the document in a 1.2 format (see under Edit->Preferences->Save->general) and all worked like a charm (it isn't true: i had to learn that implode don't like empty arrays coming from cake's Set::extract and that i needed a useful patch (thanks!) to use setVars in headers and a few other things).

Hope this help, 'cause I wrote in english, and it was so painful oh how painful, for you.

Nessun commento:

Posta un commento