Hacker News new | ask | show | jobs
by orthoxerox 104 days ago
OOXML is incredibly complicated, but LLMs can write it well enough. One of my colleagues was using an LLM to generate PNG slides for a presentation. They looked pretty, but changing anything was a pain. I fed the images to free ChatGPT and asked for a PPTX with every text box, frame and image split into its own object, and it spat out a real, editable presentation.
3 comments

They added a whole set of skills and python scripts for interacting with office files using libreoffice headless, it's not writing the XML files directly
Right it's mostly python scripts instead of generating the entire XML, but they do make changes to the XML directly to get around python-pptx limitations: https://github.com/anthropics/skills/blob/main/skills/pptx/S...

Ironically, the Claude PowerPoint add-in actually does a lot of direct XML because the Office.js library can't even do charts

You could probably then copy-and-paste those into a PPTX file created by PowerPoint to make sure there were no weird things going on with the file(structure) that might cause problems later.
ChatGPT has a very sophisticated Office doc renderer these days, to be fair.