On 29/09/2010 16:46, Oliver Brinzing wrote: > Hi, > > is there a legal way to place custom data into an oo file ? > for example adding a folder with files "custom\test.txt" to an *.ott file ? > > i noticed such data will be removed on saving the file... > > regards > > Oliver
hi Oliver, the ODF package is basically a ZIP file, so you can add arbitrary files to it, even in subdirectories (well, with the exception that there are some reserved names...). in contrast with ordinary ZIP files, an ODF package contains a file META-INF/manifest.xml. every file that is in the package must have an entry in the manifest.xml. ZIP files that do not have an entry in manifest.xml will be ignored by OOo; actually iirc in newer versions OOo may even refuse to open an ODF file if it has a ZIP entry without matching manifest.xml entry. regards, michael -- "Some may say Ruby is a bad rip-off of Lisp or Smalltalk, and I admit that. But it is nicer to ordinary people." -- Matz (at LL2) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
