To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=103339
Issue #|103339
Summary|Missing picture after inserting an odt text document i
|n writer.
Component|Word processor
Version|OOO310m14
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|writerneedsconfirm
Reported by|frank_markesteijn
--- Additional comments from frank_markeste...@openoffice.org Sun Jul 5
19:30:26 + 2009 ---
When an odt document containing grouped draw graphics gets inserted into another
odt document, in writer, by choosing "Insert" from the menu and then "File..."
then, pixel images inside the element are not preserved,
elements containing elements are copied correctly but, the
xlink:href property is not copied, after insertion it contains an empty string,
and the pixel image itself is not copied either, it is not copied to the zip
archive of the document into which it got inserted. As far as I can tell
original.odt conforms to the ODF 1.0 specification, iso/iec 26300, and the PNG
image is fine too, if anyone thinks otherwise, do let me know.
A similar thing happens when inserting a drawing with OLE, issue 103336.
To illustrate the matter, I attached two documents "original.odt" and
"inserted.odt", the former got inserted into the latter. The abbreviated
contents of the content.xml files of the attached documents are shown here:
A paragraph/page of the original file:
...All other objects on this page...
The same paragraph/page after insertion:
...All other objects on this page...
Note that the grouping is preserved and the order of appearance and the z-axis
ordering of objects within a draw group are preserved, when importing a
document, no draw:z-index properties will be added if none are present, objects
will be rendered in order of appearance.
There are two more attachments: z-index.odt, it is similar to original.odt but
all draw objects now have a draw:z-index property and the order of appearance of
the objects in the content.xml file was mixed up. This document was then
inserted into another odt document, z-index-inserted.odt, the order in which
objects are rendered is the same for both z-index.odt and z-index-inserted.odt.
If you unzip the latter then, in content.xml you will see that the objects
within a draw group are now sorted according to the z-index number and the
draw:z-index property has been stripped of.
Why does this z-index stuff matter?
If the issue of the lost picture gets fixed that would offer developers of ODF
producing applications a workaround for the z-axis ordering problem, issue
62094, issue 95948, issue 103338 and perhaps issue 77355, all developers would
need to do is to group the drawing objects! The same would hold true for users
of OpenOffice if (in Writer) they could select multiple drawing objects and
group them.
Why does this missing picture issue matter? You can copy and paste a drawing
from "Draw" to "Writer" or you could insert it as an OLE object.
Yes that may work, for single page documents but, not for multi page documents,
not if you wish to append a large number of (automatically generated) pages as
an appendix to a report.
Workaround
There is indeed a workaround for the problems above, hum:
Save the odt document that is to be inserted (original.odt in this case) in the
word 97/2000/xp format and insert that. This works for all versions of
OpenOffice, the earliest version I tried (with an sxw document) is 1.1.3.
However, if you thus create an odt document and insert that into another odt
document the picture is missing again.
if anyone knows of a better workaround, changes to the xml code, that would be
much appreciated.
Perhaps this issue is easier to fix than the z-axis ordering problem, good luck.
Frank.
-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
-
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org
-
To unsubscribe, e-mail: allbugs-unsubs