how to select master slide in OpenOffice ODG document with TinyButStrong TBS

45 views Asked by At

I can successfully manipulate fileds on a master slide of a PPTX document with this code:

        $TBS->PlugIn(OPENTBS_SELECT_SLIDE, '1', true); // select master slide
        $TBS->MergeField('abk', 'ainfo', true); // merge field 'abk.ainfo'

However, I fail trying to do the same with an ODG file that is just the PPTX file saved in a different format through LibreOffice.

Any clues?

1

There are 1 answers

1
Skrol29 On

With OpenTBS last version (1.10.0), the argument for opening the master slide is simply ignored. This is a bug and it will be fixed in the next version.

Waiting for the fix, here is a workaround: in an ODP, the master slide is saved in the styles.xml sub-file. So you can open it with the command:

$TBS->PlugIn(OPENTBS_SELECT_FILE, 'styles.xml'); // select master slide