[odf-discuss] Why and how the OpenDocument format can save you a lot of time!

Søren Roug soren.roug at eea.europa.eu
Sat May 22 06:00:16 EDT 2010


It's somewhat of a brute force solution. The main issue is that the mimetype 
has to be the first element in the zip-file and not be compressed in order to 
comply fully with the specification

Since the my_template.odt file already complies, it is much easier to take out 
only content.xml and then stuff it back in.

cp my_template.odt new_$FILENAME.odt
unzip new_$FILENAME.odt content.xml
sed ..... content.xml >custom_content.xml
mv custom_content.xml content.xml
zip -f  new_$FILENAME.odt content.xml


On Fri, May 21, 2010 15:00:32 PM -0700, Andy Brown (andy at the-martin-byrd.net) 
wrote:
> M. Fioretti wrote:
> >Greetings,
> >
> >here is the introduction to a series of quick and dirty recipes I'll
> >publish on my "tips &tricks" website:
> >
> >http://freesoftware.zona-m.net/why-and-how-opendocument-format-can-save-
you-lot-time
> 
> Thank for link, Marco.  I just took a quick glance at it but it
> looks promising and I will be passing it on to a group that I am
> trying to convince to switch to ODF.

You're welcome! Here's a first, practical example of what I was
talking about:

http://freesoftware.zona-m.net/how-automatically-create-opendocument-invoices-
without-openoffice

Marco
_______________________________________________
odf-discuss mailing list
odf-discuss at opendocumentfellowship.com
http://lists.opendocumentfellowship.com/mailman/listinfo/odf-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opendocumentfellowship.com/pipermail/odf-discuss/attachments/20100522/7028edd1/attachment.htm


More information about the odf-discuss mailing list