Question

Powerpoint, change background

  • 29 January 2020
  • 2 replies
  • 5 views

Badge +21

There is no Powerpoint reader in FME, but is it still somehow possible to replace background and/or color/styling on existing powerpoints on several Powerpoint-files by using FME?


2 replies

Userlevel 4
Badge +25

I don't think so. Background images are defined by the master slide in Powerpoint, and FME doesn't touch those. If you create a new powerpoint with the new style, then you can create new slides, but can't amend existing ones. You'd have to save the original powerpoint as an FME-readable format (PDF?!), read it back with FME, reconstruct/restyle it, then write it to a powerpoint using the new template.

But I think you'd have to be working with a large number of powerpoints, to spend time getting that to work. Otherwise you may as just well open each in turn and set the background manually.

Badge +22

I would investigate using python-pptx.

I've had very good success with the corresponding python-docx package.

Alternatively you could change the extension from pptx to zip, and then use the xml readers/writers and transformers to update the slide.

Reply