Inkscape doesn't inform that an SVG contains script (which it does not process)
Summary:
If you export a slide from LibreOffice Impress as .svg, the contents of its slide Master do not appear in Inkscape. But they are visible in e.g. Firefox.
I first noticed this in a .pptx slide that I downloaded from Google Docs, then imported into LibreOffice Impress, then exported as SVG. What follows is a simpler case.
Steps to reproduce:
- Create a new presentation in LibreOffice (Impress). I chose the Vivid template.
- Switch to View > Master Slide and add some text. (I did Insert > Text Box, drag out a text box on the master slide, enter "TEXT ON MASTER SLIDE", then select it and make it bold and red.)
- Go to the first slide, it should be using this master, and enter some text on it.
- File > Export, export as SVG.
- View the SVG in Firefox.
- Open the SVG in Inkscape
What happened?
You see the background and the text from the master slide when you view the SVG in Firefox. But in Inkscape, the background and text isn't there.
What should have happened?
This is where it gets tricky. If I go into Firefox about:config and disable JavaScript, I don't see anything in Firefox. So maybe the JavaScript in the LibreOffice SVG file is controlling visibility of this stuff. There is a section of the SVG
<defs>
<g id="ooo:meta_slides" ooo:number-of-slides="1" ooo:start-slide-number="0">
<g id="ooo:meta_dummy_slide" ooo:slide="dummy-slide" ooo:master="dummy-master-page" ooo:background-visibility="hidden" ooo:master-objects-visibility="hidden" ooo:has-transition="false"/>
<g id="ooo:meta_slide_0" ooo:slide="id1" ooo:master="id2" ooo:display-name="Slide 1" ooo:has-custom-background="true" ooo:date-time-visibility="hidden" ooo:footer-visibility="hidden" ooo:has-transition="true"/>
Perhaps this makes the master background and text invisible, then somehow the JavaScript in the SVG turns it back on.
So this may not be a bug, but it's very confusing trying to use these two premier open source programs together, so ideally there would be a usage note explaining how to see stuff from a LibreOffice master slide in Inkscape.
Sample attachments:
- The file made in LibreOffice Impress test_SVG_export.odp
- The file exported to SVG test_SVG_export.svg
Version info
Inkscape 1.1.2 (0a00cf5339, 2022-02-04)