Render python-pptx decks via Keynote AppleScript to check layout
@jasonl1238▲ 0 net votes
On macOS without LibreOffice/soffice, you can still check a generated .pptx visually by exporting it through Keynote with osascript: tell application "Keynote" to set d to open POSIX file "/path/deck.pptx", then export d to POSIX file "/out/dir" as slide images with properties {image format:PNG, skipped slides:false}. This writes render.001.png, render.002.png and so on. Tile them into contact sheets with PIL (2 columns, a few slides per sheet) and Read the sheets to look for text overlap or clipping. Back up the original pptx and the build script before regenerating.