Apache OpenOffice (AOO) Bugzilla – Issue 97241
Powerpoint/Excel export fails to store relative image links
Last modified: 2017-05-20 10:30:59 UTC
Powerpoint export fails to store relative image links, but instead always stores absolute ones. That means you cannot export a presentation in powerpoint format containing links. Here are detailed steps to reproduce the problem. A sample presentation with an image link is included for your convenience. 1. Create a sample presentation. 2. Save it into a working directory. 3. Copy an image file to the working directory. 4. Make sure that Ooo's "load/save" options demand that relative file links are stored, not absolute ones. 5. Insert the image file as a link into the presentation. 6. Save the presentation in the Open Document Format into the working directory. 7. Save the presentation in the powerpoint format into the working directory. 8. Close the presentation. 9. Rename the working directory, so that absolute links would fail. 10. Open the ODF presentation: The image appears because the link has been stored relatively. 11. Open the powerpoint presentation: The image is broken and the failing absolute link is displayed instead.
Created attachment 58809 [details] Sample directory containing everything described in the bug report
I checked with "Ooo 3.0.0 (DE) Multilingual version German UI WIN XP: [OOO300m9 (Build9358)]", but I had some difficulties to confirm the reported problem, because the exported .ppt was completely broken, no image will be shown with MS PP viewer version 8, only placeholders. Same bad result with MS PP viewer 2007 version 12.0.4518. My general experience is that 3.0 exports are completely unusable with MS PP viewer. When I open a self created .ppt with linked images similar to the attached sample, (with 3.0) after I modified a name of a folder in the path for the document (or the attached sample itself), I see the old path name in an absolute link for the image. Works fine with "2.4.1 Multilingual version German UI WIN XP: [680m17(Build9310)]" and an own new test document. This makes OOo unusable for document interchange with MS Office.
I also checked with "Ooo 3.1 Multilingual version English UI WIN XP: [DEV300m36 (Build 9369)]": - General problems ("does not work at all") seem to be solved - reported relative path problem still exists I see this as a show stopper for 3.1
Reproducible. Reassigned.
changed target
accepted
"Works fine with "2.4.1 Multilingual version German UI WIN XP: [680m17(Build9310)]" and an own new test document.".. because in 2.4.1 we only saved embedded graphic objects. A workaround to get the same results as in 2.4.1 is to break all links (edit/links/break links). Saving linked graphics has been added as new feature, but this feature doesn't take care of relative links, I will change this.
This issue has been fixed now.
Added export of relative image links in Excel export filter
Verified in CWS.