Page 1 of 1

Inserted Object is not shown any longer

PostPosted: Mon Feb 01, 2016 12:05 pm
by Stupsi76
Dear all,

I am an advanced user of Open Office. I already repaired a lot of issues directly in the source code of the documents (format of Open Office documents is zip-file).

BUT I would like to know why it happens during editing a document that an integrated object is disappearing without doing anything. (see attached file)
And the second question is: What do I have to do to reactivate it (clicking on the object it is opening and it is editable).

I am looking forward to receive some hints (by-the-way: option View/Graphics and Objects is switched on!)

Many thanks!

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 9:00 am
by Zizi64
What is that object?
A picture? Which filetype is it?
A Chart? Where you inserted it from?
An another document? Which type is it?

Is that object embedded, or linked only?


Can you upload (or link from a file sharing service) your example .odt file here?

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 10:15 am
by Stupsi76
Good morning Zizi64,

this object is a draw file (.odg) and it is embedded. Clicking on this object is opening the draw correctly but it is neither not shown in normal writing mode of the odt file nor able to be exported to pdf-File.

I am not able to upload the file due to confidential reasons.

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 10:35 am
by RoryOF
Why not export the drawing in .png format and insert that in the Writer file?

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 10:47 am
by Stupsi76
That was my short notice solution now BUT the quality of this drawing is not the same as importing it directly from drawing. So for long term I am looking for a solution to use the option import object.

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 10:55 am
by RoryOF
In the Export as .png one gets an option to specify the resolution, which by default is set quite low; have you tried increasing this?

Is your embedded file not working on the design computer, or is it failing when you move to another computer?

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 11:12 am
by Zizi64
Why not export the drawing in .png format and insert that in the Writer file?

That was my short notice solution now BUT the quality of this drawing is not the same as importing it directly from drawing.


Yes, the compressed pixel based picture has not same quality as the original vectorgraphic content. But you can copy these object from the Draw application into the Writer by select/copy/paste the objects what you want to embed into the .odt document.

Or you can try the vectorgraphic export/import function (.svg or other)

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 11:18 am
by RoryOF
Just as a test, using OO 4.1.2, I made a simple .odg file and embedded it into a Writer file. I've closed OO and reopened the Writer file several times; it asks if it should update links on opening, then the current version of the .odg file shows up. I attach the content.xml file from Writer - the embedded file is called diamond.odg; perhaps it may be worth looking at content.xml on the damaged Writer file to see if there is some form of corruption or error in the linking code.

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 11:32 am
by Zizi64
I made a simple .odg file and embedded it into a Writer file. I've closed OO and reopened the Writer file several times; it asks if it should update links on opening, then the current version of the .odg file shows up.


Then you linked only that Draw file, is not? Object embedded _really_ will not ask any link update.

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 12:03 pm
by Stupsi76
This is happening in larger documents. The problem occurs not only with embedded drawings but with linked drawings, too. I repaired the document by deletion of the corrupt drawing and afterwards deleting the history content in the content.xml.
May be the option Changes tracking is having an influence on this, too.

Re: Inserted Object is not shown any longer

PostPosted: Wed Feb 03, 2016 12:04 pm
by RoryOF
Good catch, Tibor. I've made the file again, this time definitely embedding the graphic and am able to open and close with no loss of the embedded object, which maintains its identity as a distinct object.

Stupsi76's problem may be related to other cases of graphics vanishing, as investigated by John_Ha and discussed in
https://forum.openoffice.org/en/forum/viewtopic.php?f=7&t=80925

John_Ha suggests a possible fix in that thread, which involves changing a default directory. I've never had any problem with vanishing images, but I work on linux and only very rarely have I needed to prepare an image-using booklet; the "vanishing images" problem may not apply to that operating system.