On 01/12/2010 11:35, Annika Westerlaken wrote: > Dear Sir/Madam, > > Currently I am working on a project which requires me to rewrite Writer > documents without opening them. > The next step is to insert a picture, still without opening the > document. The problem is that when I use the original name of the > picture, the document has to be repaired. The picture has been renamed > to a 32 characters code. It seems this specific code is required to > refer to the picture.
i don't think that OOo requires picures to have a specific name. but i could imagine that when OOo stores a document, it will not use the original name for pictures, but simply generates a new one. i have a more plausible explanation why OOo thinks the document is invalid: the ODF package contains a file META-INF/manifest.xml. this file has an entry for every file that is contained in the package. if there is a file in the package for which no file-entry exists in the manifest, then OOo will complain about an invalid ODF document. AFAIK this is a security feature added in OOo 3.2. if you added the file to the ODF package by hand, perhaps you have forgotten to add the manifest file entry. > To see how this code is being determined/generated, I have tried > searching the source code. Unfortunately, I have no idea where to look. > So I was hoping if someone could either point me in the right direction, > or answer my question directly. > > Many thanks in advance for your assistance in this. > > Sincerely, > > Annika -- "Reality is that which, when you stop believing in it, doesn't go away." -- Philip K. Dick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
