I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-02-11 07:57:55.889714-08 by oakbox in response to 13196
Re: Created files incompatible with OpenOffice 3.2

That was the answer, I have never touched the Manifest. That still means a lot of re-writing, but at least I won't be stuck in OO 2.4 forever :)

Your code was close, but the odfManifest call would not operate on the container directly. I had to save the document and then reopen the manifest, make changes, and save the .odt file again.

# stuff happens $document->createImageElement("$time", size =>"13.76,9.53", attachment => $par, import => $testimage, style => "Graphics", ); # more stuff happens # create the .odt file $document->save(); # Now, re-open that file's manifest my $manifest = OpenOffice::OODoc::odfManifest(file => $odtfile); $manifest->setEntry($document->imageLink($time), "image/png"); # and save it back $manifest->save();

And it works! I can now add images into my reports again without OpenOffice 3.2 complaining. Considering the fact that most of my reports are imported images, this was a real problem for me.

Thank you, Jean-Marie, for your help and great module!

- oakbox (Richard Still)

Direct Responses: 13198 | Write a response