Skip Menu |

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 69717
Status: resolved
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: Nobody in particular
Requestors: gerard [...] jongerhuis.nl
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.125
Fixed in: (no value)



Subject: createImageElement does not update META-INF/manifest.xml
createImageElement does not update META-INF/manifest.xml my $newImage = $dest_doc->createImageElement( "proef", attachment => $dest_doc->getParagraph(1), size => "3.5cm, 3.5cm", style => "fr3", import => $pictName ); Solution fix it by hand my $manifest = OpenOffice::OODoc::Manifest->new( file => TEMP); $manifest->setEntry( $pictName, 'image/png'); $manifest->save;
On 2011-07-23 06:59:03, gjongerh wrote :
Show quoted text
> createImageElement does not update META-INF/manifest.xml
>
> my $newImage = $dest_doc->createImageElement(
> "proef",
> attachment => $dest_doc->getParagraph(1),
> size => "3.5cm, 3.5cm",
> style => "fr3",
> import => $pictName
> );
>
> Solution fix it by hand
> my $manifest = OpenOffice::OODoc::Manifest->new( file => TEMP);
> $manifest->setEntry( $pictName, 'image/png');
> $manifest->save;

It's not a bug; it's a functional constraint, due to the logical separation made by OODoc between the different workspaces.
<br>
When an image is inserted through the content workspace, the manifest workspace is not affected. As a general rule, a workspace is never silently changed.
<br>
Developers who are not comfortable with this constraint should have a look at ODF::lpOD, that provides similar features as OpenOffice::OODoc but allows the applications to ignore (in most cases) the workspace separation and to regard the whole document as a single object.